void function ( TermSet arg0 ) { Symbol loc0 = null ; for ( int loc1 = 0 ; loc1 < arg0 . getTerminalSymbols ( ) . size ( ) ; loc1 ++ ) { loc0 = arg0 . getTerminalSymbols ( ) . elementAt ( loc1 ) ; if ( contains ( loc0 ) == - 1 ) terminals . add ( loc0 ) ; } }
this method will add the terminal symbols from that termset to this set terminal symbols and remove the duplicate symbols . e.g. firstset a u firstset b ; concode_field_sep Symbol name concode_elem_sep Vector<Symbol> terminals concode_field_sep void setTermSet concode_elem_sep int contains concode_elem_sep void setTerminalSymbols concode_elem_sep void unionSetOf concode_elem_sep void subtract concode_elem_sep boolean hasMember concode_elem_sep void setSetOf concode_elem_sep Vector<Symbol> getTerminalSymbols concode_elem_sep String toString concode_elem_sep void setEmptySet concode_elem_sep Symbol getSymbol