org.media.mn8.parser
Class mn8TreeWalker

java.lang.Object
  |
  +--antlr.TreeParser
        |
        +--org.media.mn8.parser.mn8TreeWalker
All Implemented Interfaces:
mn8TreeWalkerTokenTypes

public class mn8TreeWalker
extends antlr.TreeParser
implements mn8TreeWalkerTokenTypes

The final Tree Walker for mn8. This is responsible of the interpretation.
This class is automaticaly generated by ANTLR.

Version:
$Revision: 1.85 $ $Date: 2002/06/05 14:55:15 $
Author:
Remus Pereni

Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static int lineNr
           
 boolean readyToReturn
           
 
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
 
Fields inherited from interface org.media.mn8.parser.mn8TreeWalkerTokenTypes
ARRAY_DECLARATOR, ASCENDING, ASSIGN, ATTR, ATTRIDENT, BLOCK, BREAK, BY, CASE, CHAR_LITERAL, COLON, COMMA, CONCEPT_DEFINITION, CONDITION, DEBUG_INFO, DEC, DEFINE, DESCENDING, DIV, DIV_ASSIGN, DO, DOT, EACH, ELEM, ELIF, ELIF_BLOCK, ELIST, ELMETIDENTIFIER, ELSE, ELSE_BLOCK, EOF, EOL, EQUAL, ESC, EXIT, EXPONENT, EXPR, EXTENDS, FALSE, FIND, FIND_FIRST, FIND_LAST, FIRST, FROM, GE, GT, HEX_DIGIT, IDENT, IF, IF_BLOCK, IMPLEMENTS_CLAUSE, IN, INC, INCLUDE, LABEL, LAND, LAST, LBRACK, LCONT, LCURLY, LE, LNOT, LOR, LPAREN, LT, METH, METHOD_CALL, METHOD_DEFINITION, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NIL, NOT, NOT_EQUAL, NULL_TREE_LOOKAHEAD, NUM_INT, NUM_REAL, OLIST, OPTIONS, PLUS, PLUS_ASSIGN, POST_DEC, POST_INC, PRINT, QUESTION, RANGE, RBRACK, RCURLY, RETURN, RPAREN, SEMI, SEP, SL_COMMENT, SOURCE, STAR, STAR_ASSIGN, STATIC, STRING_LITERAL, SUPER, SWITCH, THEN, THIS, TIMEOUT, TO, TRUE, TYPE, TYPEOF, UNARY_MINUS, UNARY_PLUS, VOCAB, WHERE, WHILE, WS
 
Constructor Summary
mn8TreeWalker()
           
 
Method Summary
 void ascendingBy(antlr.collections.AST _t)
           
 Concept ascendingByIterator(antlr.collections.AST _t, Concept on)
           
 FieldDefinition attributeFieldOnConcept(antlr.collections.AST _t, Concept on, java.lang.String conceptType)
           
 Concept attributeOnConcept(antlr.collections.AST _t, Concept on, antlr.collections.AST parent)
           
 java.util.Vector breakExpression(antlr.collections.AST _t)
           
 antlr.collections.AST byExpression(antlr.collections.AST _t)
           
 Concept byIterator(antlr.collections.AST _t, Concept on)
           
 void byMarker(antlr.collections.AST _t)
           
 boolean caseCondition(antlr.collections.AST _t, Concept equalsWith)
           
 boolean caseConditional(antlr.collections.AST _t, boolean forWhat, Concept equalsWith)
           
 Concept characterConstant(antlr.collections.AST _t)
           
 void cleanFirstOfTableElements(java.util.Vector by)
           
 Concept concept(antlr.collections.AST _t)
           
 boolean condition(antlr.collections.AST _t)
           
 boolean conditional(antlr.collections.AST _t, boolean forWhat)
           
 Concept constants(antlr.collections.AST _t)
           
 void descendingBy(antlr.collections.AST _t)
           
 Concept descendingByIterator(antlr.collections.AST _t, Concept on)
           
 Concept directAttributeReference(antlr.collections.AST _t)
           
 Concept directElementReference(antlr.collections.AST _t)
           
 Concept directMethodReference(antlr.collections.AST _t)
           
 void doWhileLoop(antlr.collections.AST _t)
           
 void eachBlock(antlr.collections.AST _t)
           
 FieldDefinition elementFieldOnConcept(antlr.collections.AST _t, Concept on, java.lang.String conceptType)
           
 Concept elementOnConcept(antlr.collections.AST _t, Concept on, antlr.collections.AST parent)
           
 Concept executeInheritedMethod(java.lang.String inhConceptType, java.lang.String methodSig, Concept on, SeriesConcept param)
           
 Concept executeMethod(java.lang.String methodSig, Concept on, SeriesConcept param)
           
static Concept executeMethod(java.lang.String methodSig, Concept on, SeriesConcept param, int lineNr)
           
 Concept executeStaticMethod(java.lang.String methodSig, java.lang.String concetType, SeriesConcept param)
           
static Concept executeStaticMethod(java.lang.String methodSig, java.lang.String conceptType, SeriesConcept param, int lineNr)
           
 void exit()
           
 void exitStatement(antlr.collections.AST _t)
           
 Concept expression(antlr.collections.AST _t)
           
 Concept falseKeyword(antlr.collections.AST _t)
           
 void findFirstStatement(antlr.collections.AST _t)
           
 void findLastStatement(antlr.collections.AST _t)
           
 Concept fromExpression(antlr.collections.AST _t)
           
static ConceptDefinition getConceptDefinition(Concept forConcept)
           
 ScopeStack getStack()
           
 Concept identifier(antlr.collections.AST _t)
           
 Concept identOrConstant(antlr.collections.AST _t)
           
 void ifBlock(antlr.collections.AST _t)
           
 boolean ifThenBody(antlr.collections.AST _t)
           
 Concept integerConstant(antlr.collections.AST _t)
           
 Concept interpretationUnit(antlr.collections.AST _t, mn8Concept concept, mn8ScriptMethod thisMethod, ScopeStack scopeStack)
           
 SeriesConcept iterationSource(antlr.collections.AST _t)
           
 Concept methodOnConcept(antlr.collections.AST _t, Concept on, antlr.collections.AST parent)
           
 Concept nilKeyword(antlr.collections.AST _t)
           
 Concept oneDeepPostfixedConceptValue(antlr.collections.AST _t, Concept concept, antlr.collections.AST parent)
           
 void optionItem(antlr.collections.AST _t, MapConcept opt)
           
 MapConcept optionList(antlr.collections.AST _t, MapConcept map)
           
 SeriesConcept parameters(antlr.collections.AST _t)
           
 Concept postfixedConceptValue(antlr.collections.AST _t, Concept concept, antlr.collections.AST parent)
           
 FieldDefinition postfixPaths(antlr.collections.AST _t, Concept on, java.lang.String conceptType)
           
 Concept primaryExpression(antlr.collections.AST _t)
           
 void print(antlr.collections.AST _t)
           
 SeriesConcept range(antlr.collections.AST _t)
           
 Concept realConstant(antlr.collections.AST _t)
           
 void reportError(java.lang.String message)
           
 void reportWarning(java.lang.String message)
           
 Concept resolveIdentifier(antlr.collections.AST i)
           
 Concept returnStatement(antlr.collections.AST _t)
           
 Concept statement(antlr.collections.AST _t)
           
 Concept statementBlock(antlr.collections.AST _t)
           
 Concept stringConstant(antlr.collections.AST _t)
           
 Concept superKeyword(antlr.collections.AST _t)
           
 void switchBlock(antlr.collections.AST _t)
           
 boolean switchBody(antlr.collections.AST _t, Concept equalsWith)
           
 Concept thisKeyword(antlr.collections.AST _t)
           
 void toStatement(antlr.collections.AST _t)
           
 Concept trueKeyword(antlr.collections.AST _t)
           
 Concept variableOrTypeReference(antlr.collections.AST _t)
           
 void whileDoLoop(antlr.collections.AST _t)
           
 
Methods inherited from class antlr.TreeParser
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineNr

public static int lineNr

readyToReturn

public boolean readyToReturn

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1
Constructor Detail

mn8TreeWalker

public mn8TreeWalker()
Method Detail

exit

public void exit()

reportWarning

public void reportWarning(java.lang.String message)
Overrides:
reportWarning in class antlr.TreeParser

reportError

public void reportError(java.lang.String message)
Overrides:
reportError in class antlr.TreeParser

getStack

public ScopeStack getStack()

getConceptDefinition

public static ConceptDefinition getConceptDefinition(Concept forConcept)

executeStaticMethod

public Concept executeStaticMethod(java.lang.String methodSig,
                                   java.lang.String concetType,
                                   SeriesConcept param)

executeStaticMethod

public static Concept executeStaticMethod(java.lang.String methodSig,
                                          java.lang.String conceptType,
                                          SeriesConcept param,
                                          int lineNr)

executeMethod

public Concept executeMethod(java.lang.String methodSig,
                             Concept on,
                             SeriesConcept param)

executeMethod

public static Concept executeMethod(java.lang.String methodSig,
                                    Concept on,
                                    SeriesConcept param,
                                    int lineNr)

executeInheritedMethod

public Concept executeInheritedMethod(java.lang.String inhConceptType,
                                      java.lang.String methodSig,
                                      Concept on,
                                      SeriesConcept param)

resolveIdentifier

public Concept resolveIdentifier(antlr.collections.AST i)

cleanFirstOfTableElements

public void cleanFirstOfTableElements(java.util.Vector by)

interpretationUnit

public final Concept interpretationUnit(antlr.collections.AST _t,
                                        mn8Concept concept,
                                        mn8ScriptMethod thisMethod,
                                        ScopeStack scopeStack)
                                 throws antlr.RecognitionException

statement

public final Concept statement(antlr.collections.AST _t)
                        throws antlr.RecognitionException

statementBlock

public final Concept statementBlock(antlr.collections.AST _t)
                             throws antlr.RecognitionException

expression

public final Concept expression(antlr.collections.AST _t)
                         throws antlr.RecognitionException

print

public final void print(antlr.collections.AST _t)
                 throws antlr.RecognitionException

switchBlock

public final void switchBlock(antlr.collections.AST _t)
                       throws antlr.RecognitionException

whileDoLoop

public final void whileDoLoop(antlr.collections.AST _t)
                       throws antlr.RecognitionException

doWhileLoop

public final void doWhileLoop(antlr.collections.AST _t)
                       throws antlr.RecognitionException

ifBlock

public final void ifBlock(antlr.collections.AST _t)
                   throws antlr.RecognitionException

toStatement

public final void toStatement(antlr.collections.AST _t)
                       throws antlr.RecognitionException

findFirstStatement

public final void findFirstStatement(antlr.collections.AST _t)
                              throws antlr.RecognitionException

findLastStatement

public final void findLastStatement(antlr.collections.AST _t)
                             throws antlr.RecognitionException

exitStatement

public final void exitStatement(antlr.collections.AST _t)
                         throws antlr.RecognitionException

returnStatement

public final Concept returnStatement(antlr.collections.AST _t)
                              throws antlr.RecognitionException

eachBlock

public final void eachBlock(antlr.collections.AST _t)
                     throws antlr.RecognitionException

concept

public final Concept concept(antlr.collections.AST _t)
                      throws antlr.RecognitionException

identOrConstant

public final Concept identOrConstant(antlr.collections.AST _t)
                              throws antlr.RecognitionException

iterationSource

public final SeriesConcept iterationSource(antlr.collections.AST _t)
                                    throws antlr.RecognitionException

breakExpression

public final java.util.Vector breakExpression(antlr.collections.AST _t)
                                       throws antlr.RecognitionException

fromExpression

public final Concept fromExpression(antlr.collections.AST _t)
                             throws antlr.RecognitionException

byExpression

public final antlr.collections.AST byExpression(antlr.collections.AST _t)
                                         throws antlr.RecognitionException

byMarker

public final void byMarker(antlr.collections.AST _t)
                    throws antlr.RecognitionException

descendingBy

public final void descendingBy(antlr.collections.AST _t)
                        throws antlr.RecognitionException

ascendingBy

public final void ascendingBy(antlr.collections.AST _t)
                       throws antlr.RecognitionException

byIterator

public final Concept byIterator(antlr.collections.AST _t,
                                Concept on)
                         throws antlr.RecognitionException

descendingByIterator

public final Concept descendingByIterator(antlr.collections.AST _t,
                                          Concept on)
                                   throws antlr.RecognitionException

ascendingByIterator

public final Concept ascendingByIterator(antlr.collections.AST _t,
                                         Concept on)
                                  throws antlr.RecognitionException

switchBody

public final boolean switchBody(antlr.collections.AST _t,
                                Concept equalsWith)
                         throws antlr.RecognitionException

caseConditional

public final boolean caseConditional(antlr.collections.AST _t,
                                     boolean forWhat,
                                     Concept equalsWith)
                              throws antlr.RecognitionException

caseCondition

public final boolean caseCondition(antlr.collections.AST _t,
                                   Concept equalsWith)
                            throws antlr.RecognitionException

ifThenBody

public final boolean ifThenBody(antlr.collections.AST _t)
                         throws antlr.RecognitionException

conditional

public final boolean conditional(antlr.collections.AST _t,
                                 boolean forWhat)
                          throws antlr.RecognitionException

condition

public final boolean condition(antlr.collections.AST _t)
                        throws antlr.RecognitionException

optionList

public final MapConcept optionList(antlr.collections.AST _t,
                                   MapConcept map)
                            throws antlr.RecognitionException

optionItem

public final void optionItem(antlr.collections.AST _t,
                             MapConcept opt)
                      throws antlr.RecognitionException

primaryExpression

public final Concept primaryExpression(antlr.collections.AST _t)
                                throws antlr.RecognitionException

identifier

public final Concept identifier(antlr.collections.AST _t)
                         throws antlr.RecognitionException

constants

public final Concept constants(antlr.collections.AST _t)
                        throws antlr.RecognitionException

range

public final SeriesConcept range(antlr.collections.AST _t)
                          throws antlr.RecognitionException

directMethodReference

public final Concept directMethodReference(antlr.collections.AST _t)
                                    throws antlr.RecognitionException

directAttributeReference

public final Concept directAttributeReference(antlr.collections.AST _t)
                                       throws antlr.RecognitionException

directElementReference

public final Concept directElementReference(antlr.collections.AST _t)
                                     throws antlr.RecognitionException

postfixedConceptValue

public final Concept postfixedConceptValue(antlr.collections.AST _t,
                                           Concept concept,
                                           antlr.collections.AST parent)
                                    throws antlr.RecognitionException

variableOrTypeReference

public final Concept variableOrTypeReference(antlr.collections.AST _t)
                                      throws antlr.RecognitionException

stringConstant

public final Concept stringConstant(antlr.collections.AST _t)
                             throws antlr.RecognitionException

characterConstant

public final Concept characterConstant(antlr.collections.AST _t)
                                throws antlr.RecognitionException

integerConstant

public final Concept integerConstant(antlr.collections.AST _t)
                              throws antlr.RecognitionException

realConstant

public final Concept realConstant(antlr.collections.AST _t)
                           throws antlr.RecognitionException

trueKeyword

public final Concept trueKeyword(antlr.collections.AST _t)
                          throws antlr.RecognitionException

falseKeyword

public final Concept falseKeyword(antlr.collections.AST _t)
                           throws antlr.RecognitionException

nilKeyword

public final Concept nilKeyword(antlr.collections.AST _t)
                         throws antlr.RecognitionException

thisKeyword

public final Concept thisKeyword(antlr.collections.AST _t)
                          throws antlr.RecognitionException

superKeyword

public final Concept superKeyword(antlr.collections.AST _t)
                           throws antlr.RecognitionException

methodOnConcept

public final Concept methodOnConcept(antlr.collections.AST _t,
                                     Concept on,
                                     antlr.collections.AST parent)
                              throws antlr.RecognitionException

oneDeepPostfixedConceptValue

public final Concept oneDeepPostfixedConceptValue(antlr.collections.AST _t,
                                                  Concept concept,
                                                  antlr.collections.AST parent)
                                           throws antlr.RecognitionException

elementOnConcept

public final Concept elementOnConcept(antlr.collections.AST _t,
                                      Concept on,
                                      antlr.collections.AST parent)
                               throws antlr.RecognitionException

attributeOnConcept

public final Concept attributeOnConcept(antlr.collections.AST _t,
                                        Concept on,
                                        antlr.collections.AST parent)
                                 throws antlr.RecognitionException

parameters

public final SeriesConcept parameters(antlr.collections.AST _t)
                               throws antlr.RecognitionException

postfixPaths

public final FieldDefinition postfixPaths(antlr.collections.AST _t,
                                          Concept on,
                                          java.lang.String conceptType)
                                   throws antlr.RecognitionException

attributeFieldOnConcept

public final FieldDefinition attributeFieldOnConcept(antlr.collections.AST _t,
                                                     Concept on,
                                                     java.lang.String conceptType)
                                              throws antlr.RecognitionException

elementFieldOnConcept

public final FieldDefinition elementFieldOnConcept(antlr.collections.AST _t,
                                                   Concept on,
                                                   java.lang.String conceptType)
                                            throws antlr.RecognitionException


"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."