Package ghidra.app.util.cparser.C
Class CParserTokenManager
- java.lang.Object
-
- ghidra.app.util.cparser.C.CParserTokenManager
-
- All Implemented Interfaces:
CParserConstants
public class CParserTokenManager extends java.lang.Object implements CParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected char
curChar
java.io.PrintStream
debugStream
Debug output.protected SimpleCharStream
input_stream
static int[]
jjnewLexState
Lex State array.static java.lang.String[]
jjstrLiteralImages
Token literal values.static java.lang.String[]
lexStateNames
Lexer state names.-
Fields inherited from interface ghidra.app.util.cparser.C.CParserConstants
ASM, ASM_SEMI, ASMBLOCK, ASMBLOCKB, ASMBLOCKP, ATTRIBUTE, AUTO, BREAK, CASE, CDECL, CHAR, CHARACTER_LITERAL, CONST, CONTINUE, DECIMAL_LITERAL, DECLSPEC, DEFAULT, DFLT, DIGIT, DO, DOUBLE, ELSE, ENUM, EOF, EXPONENT, EXTENSION, EXTERN, FAR, FASTCALL, FLOAT, FLOATING_POINT_LITERAL, FOR, GOTO, HEX_LITERAL, IDENTIFIER, IF, INLINE, INT, INT16, INT32, INT64, INT8, INTEGER_LITERAL, INTERFACE, LETTER, LINE, LINEALT, LINEBLOCK, LINENUMBER_LITERAL, LONG, NEAR, OBJC, OBJC_DIGIT, OBJC_IDENTIFIER, OBJC_IGNORE, OBJC_LETTER, OBJC_SEMI, OBJC2, OBJC2_END, OBJC2_IGNORE, OCTAL_LITERAL, PATH_LITERAL, PCLOSE, PCOLON, PCOMMA, PDECIMAL_LITERAL, PDIGIT, PHASH, PHEX_LITERAL, PIDENTIFIER, PINTEGER_LITERAL, PLETTER, POCTAL_LITERAL, POPEN, PRAGMA, PRAGMALINE, PROTOCOL, PSTRING_LITERAL, PTR32, PTR64, QUOTE_C, READABLETO, REGISTER, RESTRICT, RETURN, SHORT, SIGNED, SIZEOF, STATIC, STDCALL, STRING_LITERAL, STRUCT, SWITCH, tokenImage, TYPEDEF, UNION, UNSIGNED, VOID, VOLATILE, W64, WCHAR, WHILE
-
-
Constructor Summary
Constructors Constructor Description CParserTokenManager(SimpleCharStream stream)
Constructor.CParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getNextToken()
Get the next Token.protected Token
jjFillToken()
void
ReInit(SimpleCharStream stream)
Reinitialise parser.void
ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.void
setDebugStream(java.io.PrintStream ds)
Set debug output.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public java.io.PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final java.lang.String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final java.lang.String[] lexStateNames
Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Lex State array.
-
input_stream
protected SimpleCharStream input_stream
-
curChar
protected char curChar
-
-
Constructor Detail
-
CParserTokenManager
public CParserTokenManager(SimpleCharStream stream)
Constructor.
-
CParserTokenManager
public CParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(java.io.PrintStream ds)
Set debug output.
-
ReInit
public void ReInit(SimpleCharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
-