public class PanParser extends Object implements PanParserTreeConstants, PanParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTPanParserState |
jjtree |
Token |
token
Current token.
|
PanParserTokenManager |
token_source
Generated Token Manager.
|
JJTADDOPERATION, JJTBASETYPESPEC, JJTBITWISEANDOPERATION, JJTBITWISEEXCLUSIVEOROPERATION, JJTBITWISEINCLUSIVEOROPERATION, JJTDIVOPERATION, JJTEQOPERATION, JJTFIELDSPEC, JJTFULLTYPESPEC, JJTFUNCTION, JJTGEOPERATION, JJTGTOPERATION, JJTLEOPERATION, JJTLOGICALANDEXPRESSION, JJTLOGICALOREXPRESSION, JJTLTOPERATION, JJTMODOPERATION, JJTMULOPERATION, JJTNEOPERATION, jjtNodeName, JJTOPERATION, JJTSTATEMENT, JJTSUBOPERATION, JJTTEMPLATE, JJTTYPECLAUSE, JJTTYPESPEC, JJTVARIABLE, JJTVOIDAND, ANNOTATION, ASSIGN, ASSIGN_DEFAULT, ASTERISK, BIND, BIT_AND, BIT_IOR, BIT_NOT, BIT_XOR, COMMA, COMMENT, DECIMAL_LITERAL, DECLARATION, DEFAULT, DIV, DOUBLE_LITERAL, DOUBLE_QUOTED_STRING, ELSE, EOF, EQ, ERROR, EXPONENT, EXTENSIBLE, FALSE, FINAL, FOR, FOREACH, FUNCTION, GE, GT, HD_MARKER, HEREDOC, HEREDOC_STRING, HEX_LITERAL, IDENTIFIER, IF, INCLUDE, LBRACE, LBRACKET, LE, LPAREN, LT, MINUS, MOD, NAMESPACE, NE, NOT, NS_IDENTIFIER, NULL_LITERAL, OBJECT, OCTAL_LITERAL, OPTIONAL, OR, PLUS, PREFIX, RANGE, RBRACE, RBRACKET, REQUIRED, RPAREN, SEMICOLON, SINGLE_QUOTED_STRING, STRUCTURE, TEMPLATE, tokenImage, TRUE, TYPE, UNDEF_LITERAL, UNIQUE, VALID, VARIABLE, WHILE, WITH| Constructor and Description |
|---|
PanParser(InputStream stream)
Constructor with InputStream.
|
PanParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
PanParser(PanParserTokenManager tm)
Constructor with generated Token Manager.
|
PanParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
additiveExpression() |
void |
assignmentExpression() |
SourceRange |
baseTypeSpec() |
void |
bitAndExpression() |
void |
booleanLiteral() |
SourceRange |
defaultValue() |
void |
deprecated(String message,
Token token)
Write deprecation message to standard output.
|
void |
disable_tracing()
Disable tracing.
|
ASTOperation |
dml() |
void |
dmlSequence()
Expressions.
|
void |
dmlVariable() |
void |
doubleLiteral() |
void |
emptyStatement() |
void |
enable_tracing()
Enable tracing.
|
void |
endOfFile()
End-of-file processing.
|
void |
equalityExpression() |
void |
exclusiveOrExpression() |
void |
expression() |
void |
fieldSpec() |
void |
foreachStatement() |
void |
forStatement() |
ASTFullTypeSpec |
fullTypeSpec()
Type declarations.
|
void |
functionalExpression() |
ParseException |
generateParseException()
Generate ParseException.
|
File |
getFile()
Get the file name
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
SourceRange |
hashClause() |
void |
ifStatement() |
void |
inclusiveOrExpression() |
SourceRange |
linkClause() |
SourceRange |
listClause() |
void |
logicalAndExpression() |
void |
logicalOrExpression() |
String |
longLiteral() |
void |
multiplicativeExpression() |
void |
nullLiteral() |
Token |
path()
Path.
|
void |
primaryExpression() |
Range |
range() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(PanParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
relationalExpression() |
void |
setCompilerOptions(CompilerOptions options)
Set the compiler options.
|
boolean |
setDebugSuppressedFlag(String templateName)
Get the debugging pattern.
|
void |
setFile(File file)
Set the file name.
|
void |
statement()
Statements--assignments, declarations, and includes.
|
void |
statementSequence() |
void |
stringLiteral()
Literals.
|
ASTTemplate |
template()
Template syntax.
|
Token |
templateName()
This is separated in order to set a flag to indicate if debugging calls should
be included in this template.
|
SourceRange |
typeSpec() |
void |
unaryExpression() |
void |
undefLiteral() |
void |
whileStatement() |
SourceRange |
with() |
protected JJTPanParserState jjtree
public PanParserTokenManager token_source
public Token token
public Token jj_nt
public PanParser(InputStream stream)
public PanParser(InputStream stream, String encoding)
public PanParser(Reader stream)
public PanParser(PanParserTokenManager tm)
public void setFile(File file)
public File getFile()
public boolean setDebugSuppressedFlag(String templateName)
public void setCompilerOptions(CompilerOptions options)
public void deprecated(String message, Token token)
public final void endOfFile()
throws ParseException
ParseExceptionpublic final void stringLiteral()
throws ParseException
ParseExceptionpublic final String longLiteral() throws ParseException
ParseExceptionpublic final void doubleLiteral()
throws ParseException
ParseExceptionpublic final void booleanLiteral()
throws ParseException
ParseExceptionpublic final void nullLiteral()
throws ParseException
ParseExceptionpublic final void undefLiteral()
throws ParseException
ParseExceptionpublic final Token path() throws ParseException
ParseExceptionpublic final ASTTemplate template() throws ParseException
ParseExceptionpublic final Token templateName() throws ParseException
ParseExceptionpublic final void statement()
throws ParseException
ParseExceptionpublic final void statementSequence()
throws ParseException
ParseExceptionpublic final ASTFullTypeSpec fullTypeSpec() throws ParseException
ParseExceptionpublic final SourceRange defaultValue() throws ParseException
ParseExceptionpublic final SourceRange with() throws ParseException
ParseExceptionpublic final SourceRange typeSpec() throws ParseException
ParseExceptionpublic final SourceRange baseTypeSpec() throws ParseException
ParseExceptionpublic final void fieldSpec()
throws ParseException
ParseExceptionpublic final SourceRange linkClause() throws ParseException
ParseExceptionpublic final SourceRange listClause() throws ParseException
ParseExceptionpublic final SourceRange hashClause() throws ParseException
ParseExceptionpublic final Range range() throws ParseException
ParseExceptionpublic final void dmlSequence()
throws ParseException
ParseExceptionpublic final void dmlVariable()
throws ParseException
ParseExceptionpublic final ASTOperation dml() throws ParseException
ParseExceptionpublic final void ifStatement()
throws ParseException
ParseExceptionpublic final void whileStatement()
throws ParseException
ParseExceptionpublic final void foreachStatement()
throws ParseException
ParseExceptionpublic final void forStatement()
throws ParseException
ParseExceptionpublic final void emptyStatement()
throws ParseException
ParseExceptionpublic final void expression()
throws ParseException
ParseExceptionpublic final void assignmentExpression()
throws ParseException
ParseExceptionpublic final void logicalOrExpression()
throws ParseException
ParseExceptionpublic final void logicalAndExpression()
throws ParseException
ParseExceptionpublic final void inclusiveOrExpression()
throws ParseException
ParseExceptionpublic final void exclusiveOrExpression()
throws ParseException
ParseExceptionpublic final void bitAndExpression()
throws ParseException
ParseExceptionpublic final void equalityExpression()
throws ParseException
ParseExceptionpublic final void relationalExpression()
throws ParseException
ParseExceptionpublic final void additiveExpression()
throws ParseException
ParseExceptionpublic final void multiplicativeExpression()
throws ParseException
ParseExceptionpublic final void unaryExpression()
throws ParseException
ParseExceptionpublic final void functionalExpression()
throws ParseException
ParseExceptionpublic final void primaryExpression()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(PanParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2014 Quattor. All Rights Reserved.