zzAtBOL = false; else { boolean eof = zzRefill(); zzMarkedPosL = zzMarkedPos; zzEndReadL = zzEndRead; boolean eof = zzRefill(); { addToken(Token.RESERVED_WORD); { addToken(Token.IDENTIFIER); { addToken(Token.LITERAL_STRING_DOUBLE_QUOTE); { addToken(Token.FUNCTION); { addToken(Token.COMMENT_EOL); addNullToken(); return firstToken; { addToken(Token.VARIABLE); { addToken(Token.WHITESPACE); { addToken(Token.PREPROCESSOR); { addToken(Token.DATA_TYPE); { addToken(Token.ERROR_CHAR); /*addNullToken(); return firstToken;*/ { addToken(Token.OPERATOR);
public Token getTokenList(Segment text, int initialTokenType, int startOffset) { resetTokenList(); this.offsetShift = -text.offset + startOffset; yyreset(zzReader); yybegin(state); return yylex(); } catch (IOException ioe) { ioe.printStackTrace();
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
/** * Adds the token specified to the current linked list of tokens. * * @param tokenType The token's type. */ private void addToken(int tokenType) { addToken(zzStartRead, zzMarkedPos-1, tokenType); }
private static int [] zzUnpackAction() { int [] result = new int[668]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
/** * Adds the token specified to the current linked list of tokens. * * @param tokenType The token's type. */ private void addToken(int start, int end, int tokenType) { int so = start + offsetShift; addToken(zzBuffer, start,end, tokenType, so); }
private static int [] zzUnpackAction() { int [] result = new int[668]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
resetTokenList(); this.offsetShift = -text.offset + startOffset; yyreset(zzReader); yybegin(state); return yylex(); } catch (IOException ioe) { ioe.printStackTrace();
zzAtBOL = false; else { boolean eof = zzRefill(); zzMarkedPosL = zzMarkedPos; zzEndReadL = zzEndRead; boolean eof = zzRefill(); { addToken(Token.RESERVED_WORD); { addToken(Token.IDENTIFIER); { addToken(Token.LITERAL_STRING_DOUBLE_QUOTE); { addToken(Token.FUNCTION); { addToken(Token.COMMENT_EOL); addNullToken(); return firstToken; { addToken(Token.VARIABLE); { addToken(Token.WHITESPACE); { addToken(Token.PREPROCESSOR); { addToken(Token.DATA_TYPE); { addToken(Token.ERROR_CHAR); /*addNullToken(); return firstToken;*/ { addToken(Token.OPERATOR);
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
/** * Adds the token specified to the current linked list of tokens. * * @param tokenType The token's type. */ private void addToken(int tokenType) { addToken(zzStartRead, zzMarkedPos-1, tokenType); }
private static int [] zzUnpackAction() { int [] result = new int[668]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
resetTokenList(); this.offsetShift = -text.offset + startOffset; yyreset(zzReader); yybegin(state); return yylex(); } catch (IOException ioe) { ioe.printStackTrace();
zzAtBOL = false; else { boolean eof = zzRefill(); zzMarkedPosL = zzMarkedPos; zzEndReadL = zzEndRead; boolean eof = zzRefill(); { addToken(Token.RESERVED_WORD); { addToken(Token.IDENTIFIER); { addToken(Token.LITERAL_STRING_DOUBLE_QUOTE); { addToken(Token.FUNCTION); { addToken(Token.COMMENT_EOL); addNullToken(); return firstToken; { addToken(Token.VARIABLE); { addToken(Token.WHITESPACE); { addToken(Token.PREPROCESSOR); { addToken(Token.DATA_TYPE); { addToken(Token.ERROR_CHAR); /*addNullToken(); return firstToken;*/ { addToken(Token.OPERATOR);
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
/** * Adds the token specified to the current linked list of tokens. * * @param tokenType The token's type. */ private void addToken(int start, int end, int tokenType) { int so = start + offsetShift; addToken(zzBuffer, start,end, tokenType, so); }
private static int [] zzUnpackAction() { int [] result = new int[668]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; }
public Token getTokenList(Segment text, int initialTokenType, int startOffset) { resetTokenList(); this.offsetShift = -text.offset + startOffset; yyreset(zzReader); yybegin(state); return yylex(); } catch (IOException ioe) { ioe.printStackTrace();
zzAtBOL = false; else { boolean eof = zzRefill(); zzMarkedPosL = zzMarkedPos; zzEndReadL = zzEndRead; boolean eof = zzRefill(); { addToken(Token.RESERVED_WORD); { addToken(Token.IDENTIFIER); { addToken(Token.LITERAL_STRING_DOUBLE_QUOTE); { addToken(Token.FUNCTION); { addToken(Token.COMMENT_EOL); addNullToken(); return firstToken; { addToken(Token.VARIABLE); { addToken(Token.WHITESPACE); { addToken(Token.PREPROCESSOR); { addToken(Token.DATA_TYPE); { addToken(Token.ERROR_CHAR); /*addNullToken(); return firstToken;*/ { addToken(Token.OPERATOR);
/** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }