public IntSet getSet() { if ( label!=SET ) { // convert single element to a set if they ask for it. return IntervalSet.of(label); } return labelSet; }
public IntSet getSet() { if ( label!=SET ) { // convert single element to a set if they ask for it. return IntervalSet.of(label); } return labelSet; }
public IntSet getSet() { if ( label!=SET ) { // convert single element to a set if they ask for it. return IntervalSet.of(label); } return labelSet; }
public IntSet getSet() { if ( label!=SET ) { // convert single element to a set if they ask for it. return IntervalSet.of(label); } return labelSet; }
public LookaheadSet(int atom) { tokenTypeSet = IntervalSet.of(atom); }
public LookaheadSet(int atom) { tokenTypeSet = IntervalSet.of(atom); }
/** If there is a char vocabulary, use it; else return min to max char * as defined by the target. If no target, use max unicode char value. */ public IntSet getAllCharValues() { if ( charVocabulary!=null ) { return charVocabulary; } IntSet allChar = IntervalSet.of(Label.MIN_CHAR_VALUE, getMaxCharValue()); return allChar; }
/** If there is a char vocabulary, use it; else return min to max char * as defined by the target. If no target, use max unicode char value. */ public IntSet getAllCharValues() { if ( charVocabulary!=null ) { return charVocabulary; } IntSet allChar = IntervalSet.of(Label.MIN_CHAR_VALUE, getMaxCharValue()); return allChar; }
/** If there is a char vocabulary, use it; else return min to max char * as defined by the target. If no target, use max unicode char value. */ public IntSet getAllCharValues() { if ( charVocabulary!=null ) { return charVocabulary; } IntSet allChar = IntervalSet.of(Label.MIN_CHAR_VALUE, getMaxCharValue()); return allChar; }
/** If there is a char vocabulary, use it; else return min to max char * as defined by the target. If no target, use max unicode char value. */ public IntSet getAllCharValues() { if ( charVocabulary!=null ) { return charVocabulary; } IntSet allChar = IntervalSet.of(Label.MIN_CHAR_VALUE, getMaxCharValue()); return allChar; }
public IntSet complement(int atom) { return complement(IntervalSet.of(atom)); }
public void remove(int a) { tokenTypeSet = (IntervalSet)tokenTypeSet.subtract(IntervalSet.of(a)); }
public IntSet complement(int minElement, int maxElement) { return this.complement(IntervalSet.of(minElement,maxElement)); }
public void remove(int a) { tokenTypeSet = tokenTypeSet.subtract(IntervalSet.of(a)); }
public void remove(int a) { tokenTypeSet = tokenTypeSet.subtract(IntervalSet.of(a)); }
public IntSet complement(int atom) { return complement(IntervalSet.of(atom)); }
/** Return a set of all possible token or char types for this grammar */ public IntSet getTokenTypes() { if ( type==LEXER ) { return getAllCharValues(); } return IntervalSet.of(Label.MIN_TOKEN_TYPE, getMaxTokenType()); }
/** Return a set of all possible token or char types for this grammar */ public IntSet getTokenTypes() { if ( type==LEXER ) { return getAllCharValues(); } return IntervalSet.of(Label.MIN_TOKEN_TYPE, getMaxTokenType()); }
/** Return a set of all possible token or char types for this grammar */ public IntSet getTokenTypes() { if ( type==LEXER ) { return getAllCharValues(); } return IntervalSet.of(Label.MIN_TOKEN_TYPE, getMaxTokenType()); }
/** Return a set of all possible token or char types for this grammar */ public IntSet getTokenTypes() { if ( type==LEXER ) { return getAllCharValues(); } return IntervalSet.of(Label.MIN_TOKEN_TYPE, getMaxTokenType()); }