| Package | Description |
|---|---|
| com.helger.pgcc.parser |
A grammar and lexer generator.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Token.GTToken
Greater than Token.
|
| Modifier and Type | Field and Description |
|---|---|
Token |
ParseException.currentToken
This is the last token that has been consumed successfully.
|
Token |
JavaCCParser.jj_nt
Next token.
|
Token |
TokenProduction.m_firstToken
The first and last tokens from the input stream that represent this
production.
|
Token |
TokenProduction.m_lastToken |
Token |
AbstractExpRegularExpression.m_rhsToken
We now allow qualified access to token members.
|
Token |
Token.next
A reference to the next regular (non-special) token from the input stream.
|
Token |
RegExprSpec.nsTok
If the next state specification was explicit in the previous case, then
this token is that of the identifier denoting the next state.
|
Token |
Token.specialToken
This field is used to access special tokens that occur prior to this token,
but after the immediately preceding regular (non-special) token.
|
Token |
JavaCCParser.token
Current token.
|
| Modifier and Type | Field and Description |
|---|---|
List<List<Token>> |
ExpTryBlock.m_catchblks
The block part of each catch block.
|
List<Token> |
ExpTryBlock.m_finallyblk
The block part of the finally block.
|
List<Token> |
ExpTryBlock.m_ids
The exception identifiers of each catch block.
|
List<Token> |
AbstractExpRegularExpression.m_lhsTokens
The LHS to which the token value of the regular expression is assigned.
|
List<List<Token>> |
ExpTryBlock.m_types
The types of each catch block.
|
static List<Token> |
JavaCCGlobals.s_cu_from_insertion_point_2
This is the list of all tokens that appear after the tokens in
"cu_to_insertion_point_2" and until "PARSER_END(name)".
|
static List<Token> |
JavaCCGlobals.s_cu_to_insertion_point_1
This is a list of tokens that appear after "PARSER_BEGIN(name)" all the way
until (but not including) the opening brace "{" of the class "name".
|
static List<Token> |
JavaCCGlobals.s_cu_to_insertion_point_2
This is the list of all tokens that appear after the tokens in
"cu_to_insertion_point_1" and until (but not including) the closing brace
"}" of the class "name".
|
static List<Token> |
JavaCCGlobals.s_token_mgr_decls
The declarations to be inserted into the TokenManager class.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
NormalProduction.getFirstToken() |
Token |
NormalProduction.getLastToken() |
Token |
JavaCCParserTokenManager.getNextToken()
Get the next Token.
|
Token |
JavaCCParser.getNextToken() |
Token |
JavaCCParser.getToken(int index) |
Token |
JavaCCParser.JavaIdentifier()
THE JAVA GRAMMAR SPECIFICATION STARTS HERE *
|
protected Token |
JavaCCParserTokenManager.jjFillToken() |
static Token |
Token.newToken(int ofKind) |
static Token |
Token.newToken(int ofKind,
String image)
Returns a new Token object, by default.
|
Token |
NormalProduction.setFirstToken(Token firstToken) |
| Modifier and Type | Method and Description |
|---|---|
List<Token> |
ExpLookahead.getActionTokens() |
List<Token> |
ExpAction.getActionTokens() |
List<Token> |
ExpNonTerminal.getArgumentTokens() |
List<Token> |
AbstractCodeProduction.getCodeTokens() |
List<Token> |
BNFProduction.getDeclarationTokens() |
List<Token> |
ExpNonTerminal.getLhsTokens() |
List<Token> |
NormalProduction.getParameterListTokens() |
List<Token> |
ExpNonTerminal.getParametrizedTypeTokens() |
List<Token> |
NormalProduction.getReturnTypeTokens() |
List<List<Token>> |
NormalProduction.getThrowsList() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
JavaCCParserInternals.add_token_manager_decls(Token t,
List<Token> decls) |
protected static char |
JavaCCParserInternals.character_descriptor_assign(Token t,
String s) |
protected static char |
JavaCCParserInternals.character_descriptor_assign(Token t,
String s,
String left) |
protected static void |
JavaCCParserInternals.compare(Token t,
String id1,
String id2) |
protected String |
CodeGenerator.getLeadingComments(Token t) |
protected String |
CodeGenerator.getStringForTokenOnly(Token t) |
protected String |
CodeGenerator.getStringToPrint(Token t) |
protected String |
CodeGenerator.getTrailingComments(Token t) |
protected static void |
JavaCCParserInternals.insertionpointerrors(Token t) |
protected static void |
JavaCCParserInternals.makeTryBlock(Token tryLoc,
Container result,
Container nestedExp,
List<List<Token>> types,
List<Token> ids,
List<List<Token>> catchblks,
List<Token> finallyblk) |
protected static String |
JavaCCGlobals.printLeadingComments(Token t) |
protected void |
CodeGenerator.printLeadingComments(Token t) |
protected static void |
JavaCCGlobals.printLeadingComments(Token t,
PrintWriter ostr) |
static String |
JavaCCGlobals.printToken(Token t) |
protected void |
CodeGenerator.printToken(Token t) |
static void |
JavaCCGlobals.printToken(Token t,
PrintWriter ostr) |
static String |
JavaCCGlobals.printTokenOnly(Token t) |
protected void |
CodeGenerator.printTokenOnly(Token t) |
protected static void |
JavaCCGlobals.printTokenOnly(Token t,
PrintWriter ostr) |
static void |
JavaCCGlobals.printTokenSetup(Token t) |
protected void |
CodeGenerator.printTokenSetup(Token t) |
static String |
JavaCCGlobals.printTrailingComments(Token t) |
protected void |
CodeGenerator.printTrailingComments(Token t) |
protected static String |
JavaCCParserInternals.remove_escapes_and_quotes(Token t,
String str) |
protected static void |
JavaCCParserInternals.set_initial_cu_token(Token t) |
Token |
NormalProduction.setFirstToken(Token firstToken) |
protected static void |
JavaCCParserInternals.setinsertionpoint(Token t,
int no) |
void |
NormalProduction.setLastToken(Token lastToken) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
JavaCCParserInternals.add_token_manager_decls(Token t,
List<Token> decls) |
protected static void |
JavaCCParserInternals.makeTryBlock(Token tryLoc,
Container result,
Container nestedExp,
List<List<Token>> types,
List<Token> ids,
List<List<Token>> catchblks,
List<Token> finallyblk) |
protected static void |
JavaCCParserInternals.makeTryBlock(Token tryLoc,
Container result,
Container nestedExp,
List<List<Token>> types,
List<Token> ids,
List<List<Token>> catchblks,
List<Token> finallyblk) |
protected static void |
JavaCCParserInternals.makeTryBlock(Token tryLoc,
Container result,
Container nestedExp,
List<List<Token>> types,
List<Token> ids,
List<List<Token>> catchblks,
List<Token> finallyblk) |
protected static void |
JavaCCParserInternals.makeTryBlock(Token tryLoc,
Container result,
Container nestedExp,
List<List<Token>> types,
List<Token> ids,
List<List<Token>> catchblks,
List<Token> finallyblk) |
protected void |
CodeGenerator.printTokenList(List<Token> list) |
protected static void |
JavaCCGlobals.printTokenList(List<Token> list,
PrintWriter ostr) |
void |
ExpNonTerminal.setArgumentTokens(List<Token> parametrizedTypeTokens) |
void |
ExpNonTerminal.setLhsTokens(List<Token> lhsTokens) |
void |
ExpNonTerminal.setParametrizedTypeTokens(List<Token> argument_tokens) |
void |
NormalProduction.setThrowsList(List<List<Token>> throws_list) |
| Constructor and Description |
|---|
ExpChoice(Token token) |
ExpOneOrMore(Token t,
Expansion e) |
ExpRJustName(Token token,
String image) |
ExpROneOrMore(Token t,
AbstractExpRegularExpression re) |
ExpRStringLiteral(Token t,
String image) |
ExpRZeroOrMore(Token t,
AbstractExpRegularExpression r) |
ExpSequence(Token token,
ExpLookahead lookahead) |
ExpZeroOrMore(Token token,
Expansion expansion) |
ExpZeroOrOne(Token t,
Expansion e) |
ParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
String[] tokenImageVal) |
ParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
String[] tokenImageVal,
String lexicalStateName)
This constructor is used by the method "generateParseException"
in the generated parser.
|
Copyright © 2017–2019 Philip Helger. All rights reserved.