public class FunctionDefParser extends Object implements PythonParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
PythonParserTokenManager |
token_source
Generated Token Manager.
|
AND, AS, ASSIGN, COLON, COMMA, COMMENT, DEF, DEFAULT, DIGIT, DIVIDE, DOT, ELIF, ELSE, EOF, EQUAL, EXPONENT, FALSE, FLOAT, GREATER_OR_EQUAL, GREATER_THAN, IF, IMPORT, IN, IN_MULTILINE_STRING, INT, IS, LBRACKET, LESS_OR_EQUAL, LESS_THAN, LETTER, LPAREN, MINUS, MODULO, MULTILINE_STRING, MULTIPLY, NAME, NEWLINE, NONE, NONZERO_DIGIT, NOT, NOT_EQUAL, OR, PLUS, RBRACKET, RETURN, RPAREN, SEMICOLON, STRING, TILDE, tokenImage, TRUE, WHITESPACE| Constructor and Description |
|---|
FunctionDefParser() |
FunctionDefParser(Provider stream)
Constructor.
|
FunctionDefParser(PythonParserTokenManager tm)
Constructor with generated Token Manager.
|
FunctionDefParser(String dsl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
void |
FunctionDef(FunctionDef functionDef) |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
Parameters(FunctionDef functionDef) |
FunctionDef |
parseFunctionDef(String string) |
void |
ReInit(Provider stream)
Reinitialise.
|
void |
ReInit(PythonParserTokenManager tm)
Reinitialise.
|
void |
ReInit(String s) |
boolean |
trace_enabled()
Trace enabled.
|
public PythonParserTokenManager token_source
public Token token
public Token jj_nt
public FunctionDefParser()
public FunctionDefParser(Provider stream)
public FunctionDefParser(String dsl) throws ParseException, TokenMgrException
ParseExceptionTokenMgrExceptionpublic FunctionDefParser(PythonParserTokenManager tm)
public FunctionDef parseFunctionDef(String string) throws ParseException
ParseExceptionpublic final void FunctionDef(FunctionDef functionDef) throws ParseException
ParseExceptionpublic final void Parameters(FunctionDef functionDef) throws ParseException
ParseExceptionpublic void ReInit(String s)
public void ReInit(Provider stream)
public void ReInit(PythonParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final boolean trace_enabled()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2023. All rights reserved.