org.quattor.pan.parser
Class PanParser

java.lang.Object
  extended by org.quattor.pan.parser.PanParser
All Implemented Interfaces:
PanParserConstants, PanParserTreeConstants

public class PanParser
extends java.lang.Object
implements PanParserTreeConstants, PanParserConstants


Field Summary
 Token jj_nt
          Next token.
protected  JJTPanParserState jjtree
           
 Token token
          Current token.
 PanParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface org.quattor.pan.parser.PanParserTreeConstants
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, JJTVOID
 
Fields inherited from interface org.quattor.pan.parser.PanParserConstants
AND, 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 Summary
PanParser(java.io.InputStream stream)
          Constructor with InputStream.
PanParser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
PanParser(PanParserTokenManager tm)
          Constructor with generated Token Manager.
PanParser(java.io.Reader stream)
          Constructor.
 
Method Summary
 void additiveExpression()
           
 void assignmentExpression()
           
 SourceRange baseTypeSpec()
           
 void bitAndExpression()
           
 void booleanLiteral()
           
 SourceRange defaultValue()
           
 void deprecated(java.lang.String message, Token token, int level)
          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.
 java.io.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()
           
 java.lang.String longLiteral()
           
 void multiplicativeExpression()
           
 void nullLiteral()
           
 Token path()
          Path.
 void primaryExpression()
           
 Range range()
           
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(PanParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 void relationalExpression()
           
 void setCompilerOptions(CompilerOptions options)
          Set the compiler options.
 boolean setDebugSuppressedFlag(java.lang.String templateName)
          Get the debugging pattern.
 void setFile(java.io.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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTPanParserState jjtree

token_source

public PanParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

PanParser

public PanParser(java.io.InputStream stream)
Constructor with InputStream.


PanParser

public PanParser(java.io.InputStream stream,
                 java.lang.String encoding)
Constructor with InputStream and supplied encoding


PanParser

public PanParser(java.io.Reader stream)
Constructor.


PanParser

public PanParser(PanParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

setFile

public void setFile(java.io.File file)
Set the file name.


getFile

public java.io.File getFile()
Get the file name


setDebugSuppressedFlag

public boolean setDebugSuppressedFlag(java.lang.String templateName)
Get the debugging pattern.


setCompilerOptions

public void setCompilerOptions(CompilerOptions options)
Set the compiler options. Will be used to determine debugging status.


deprecated

public void deprecated(java.lang.String message,
                       Token token,
                       int level)
Write deprecation message to standard output.


endOfFile

public final void endOfFile()
                     throws ParseException
End-of-file processing.

Throws:
ParseException

stringLiteral

public final void stringLiteral()
                         throws ParseException
Literals.

Throws:
ParseException

longLiteral

public final java.lang.String longLiteral()
                                   throws ParseException
Throws:
ParseException

doubleLiteral

public final void doubleLiteral()
                         throws ParseException
Throws:
ParseException

booleanLiteral

public final void booleanLiteral()
                          throws ParseException
Throws:
ParseException

nullLiteral

public final void nullLiteral()
                       throws ParseException
Throws:
ParseException

undefLiteral

public final void undefLiteral()
                        throws ParseException
Throws:
ParseException

path

public final Token path()
                 throws ParseException
Path. A string literal excepting the heredoc format. Used to simplify the generated AST.

Throws:
ParseException

template

public final ASTTemplate template()
                           throws ParseException
Template syntax. Just a template declaration followed by a series of statements.

Throws:
ParseException

templateName

public final Token templateName()
                         throws ParseException
This is separated in order to set a flag to indicate if debugging calls should be included in this template.

Throws:
ParseException

statement

public final void statement()
                     throws ParseException
Statements--assignments, declarations, and includes.

Throws:
ParseException

statementSequence

public final void statementSequence()
                             throws ParseException
Throws:
ParseException

fullTypeSpec

public final ASTFullTypeSpec fullTypeSpec()
                                   throws ParseException
Type declarations.

Throws:
ParseException

defaultValue

public final SourceRange defaultValue()
                               throws ParseException
Throws:
ParseException

with

public final SourceRange with()
                       throws ParseException
Throws:
ParseException

typeSpec

public final SourceRange typeSpec()
                           throws ParseException
Throws:
ParseException

baseTypeSpec

public final SourceRange baseTypeSpec()
                               throws ParseException
Throws:
ParseException

fieldSpec

public final void fieldSpec()
                     throws ParseException
Throws:
ParseException

linkClause

public final SourceRange linkClause()
                             throws ParseException
Throws:
ParseException

listClause

public final SourceRange listClause()
                             throws ParseException
Throws:
ParseException

hashClause

public final SourceRange hashClause()
                             throws ParseException
Throws:
ParseException

range

public final Range range()
                  throws ParseException
Throws:
ParseException

dmlSequence

public final void dmlSequence()
                       throws ParseException
Expressions.

Throws:
ParseException

dmlVariable

public final void dmlVariable()
                       throws ParseException
Throws:
ParseException

dml

public final ASTOperation dml()
                       throws ParseException
Throws:
ParseException

ifStatement

public final void ifStatement()
                       throws ParseException
Throws:
ParseException

whileStatement

public final void whileStatement()
                          throws ParseException
Throws:
ParseException

foreachStatement

public final void foreachStatement()
                            throws ParseException
Throws:
ParseException

forStatement

public final void forStatement()
                        throws ParseException
Throws:
ParseException

emptyStatement

public final void emptyStatement()
                          throws ParseException
Throws:
ParseException

expression

public final void expression()
                      throws ParseException
Throws:
ParseException

assignmentExpression

public final void assignmentExpression()
                                throws ParseException
Throws:
ParseException

logicalOrExpression

public final void logicalOrExpression()
                               throws ParseException
Throws:
ParseException

logicalAndExpression

public final void logicalAndExpression()
                                throws ParseException
Throws:
ParseException

inclusiveOrExpression

public final void inclusiveOrExpression()
                                 throws ParseException
Throws:
ParseException

exclusiveOrExpression

public final void exclusiveOrExpression()
                                 throws ParseException
Throws:
ParseException

bitAndExpression

public final void bitAndExpression()
                            throws ParseException
Throws:
ParseException

equalityExpression

public final void equalityExpression()
                              throws ParseException
Throws:
ParseException

relationalExpression

public final void relationalExpression()
                                throws ParseException
Throws:
ParseException

additiveExpression

public final void additiveExpression()
                              throws ParseException
Throws:
ParseException

multiplicativeExpression

public final void multiplicativeExpression()
                                    throws ParseException
Throws:
ParseException

unaryExpression

public final void unaryExpression()
                           throws ParseException
Throws:
ParseException

functionalExpression

public final void functionalExpression()
                                throws ParseException
Throws:
ParseException

primaryExpression

public final void primaryExpression()
                             throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(PanParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2011 Quattor. All Rights Reserved.