state = new CharSetParseState(state.mode, true, state.prevCodePoint, state.prevProperty);
state = new CharSetParseState(state.mode, true, state.prevCodePoint, state.prevProperty);
state = new CharSetParseState(state.mode, true, state.prevCodePoint, state.prevProperty);
private CharSetParseState applyPrevStateAndMoveToCodePoint( GrammarAST charSetAST, IntervalSet set, CharSetParseState state, int codePoint) { if (state.inRange) { if (state.prevCodePoint > codePoint) { g.tool.errMgr.grammarError( ErrorType.EMPTY_STRINGS_AND_SETS_NOT_ALLOWED, g.fileName, charSetAST.getToken(), CharSupport.getRangeEscapedString(state.prevCodePoint, codePoint)); } checkSetCollision(charSetAST, set, state.prevCodePoint, codePoint); set.add(state.prevCodePoint, codePoint); state = CharSetParseState.NONE; } else { applyPrevState(charSetAST, set, state); state = new CharSetParseState( CharSetParseState.Mode.PREV_CODE_POINT, false, codePoint, IntervalSet.EMPTY_SET); } return state; }
private CharSetParseState applyPrevStateAndMoveToCodePoint( GrammarAST charSetAST, IntervalSet set, CharSetParseState state, int codePoint) { if (state.inRange) { if (state.prevCodePoint > codePoint) { g.tool.errMgr.grammarError( ErrorType.EMPTY_STRINGS_AND_SETS_NOT_ALLOWED, g.fileName, charSetAST.getToken(), CharSupport.getRangeEscapedString(state.prevCodePoint, codePoint)); } checkSetCollision(charSetAST, set, state.prevCodePoint, codePoint); set.add(state.prevCodePoint, codePoint); state = CharSetParseState.NONE; } else { applyPrevState(charSetAST, set, state); state = new CharSetParseState( CharSetParseState.Mode.PREV_CODE_POINT, false, codePoint, IntervalSet.EMPTY_SET); } return state; }
private CharSetParseState applyPrevStateAndMoveToCodePoint( GrammarAST charSetAST, IntervalSet set, CharSetParseState state, int codePoint) { if (state.inRange) { if (state.prevCodePoint > codePoint) { g.tool.errMgr.grammarError( ErrorType.EMPTY_STRINGS_AND_SETS_NOT_ALLOWED, g.fileName, charSetAST.getToken(), CharSupport.getRangeEscapedString(state.prevCodePoint, codePoint)); } checkSetCollision(charSetAST, set, state.prevCodePoint, codePoint); set.add(state.prevCodePoint, codePoint); state = CharSetParseState.NONE; } else { applyPrevState(charSetAST, set, state); state = new CharSetParseState( CharSetParseState.Mode.PREV_CODE_POINT, false, codePoint, IntervalSet.EMPTY_SET); } return state; }
private CharSetParseState applyPrevStateAndMoveToProperty( GrammarAST charSetAST, IntervalSet set, CharSetParseState state, IntervalSet property) { if (state.inRange) { g.tool.errMgr.grammarError(ErrorType.UNICODE_PROPERTY_NOT_ALLOWED_IN_RANGE, g.fileName, charSetAST.getToken(), charSetAST.getText()); return CharSetParseState.ERROR; } else { applyPrevState(charSetAST, set, state); state = new CharSetParseState( CharSetParseState.Mode.PREV_PROPERTY, false, -1, property); } return state; }
private CharSetParseState applyPrevStateAndMoveToProperty( GrammarAST charSetAST, IntervalSet set, CharSetParseState state, IntervalSet property) { if (state.inRange) { g.tool.errMgr.grammarError(ErrorType.UNICODE_PROPERTY_NOT_ALLOWED_IN_RANGE, g.fileName, charSetAST.getToken(), charSetAST.getText()); return CharSetParseState.ERROR; } else { applyPrevState(charSetAST, set, state); state = new CharSetParseState( CharSetParseState.Mode.PREV_PROPERTY, false, -1, property); } return state; }
private CharSetParseState applyPrevStateAndMoveToProperty( GrammarAST charSetAST, IntervalSet set, CharSetParseState state, IntervalSet property) { if (state.inRange) { g.tool.errMgr.grammarError(ErrorType.UNICODE_PROPERTY_NOT_ALLOWED_IN_RANGE, g.fileName, charSetAST.getToken(), charSetAST.getText()); return CharSetParseState.ERROR; } else { applyPrevState(charSetAST, set, state); state = new CharSetParseState( CharSetParseState.Mode.PREV_PROPERTY, false, -1, property); } return state; }