adalogo.lang

Class Lang

Implemented Interfaces:
LangConstants, LangTreeConstants

public class Lang
extends java.lang.Object
implements LangTreeConstants, LangConstants

Nested Class Summary

Field Summary

protected adalogo.lang.JJTLangState
jjtree
boolean
lookingAhead
Token
token, jj_nt
LangTokenManager
token_source

Fields inherited from interface adalogo.lang.LangConstants

ADALOGO, AND, BEGIN, BOOLEAN, COLON, COMMA, DASH, DEFAULT, DOT_DOT, ELSE, ELSIF, END, EOF, EQ, EXIT, FALSE, FOR, FORWARD, GETX, GETY, GT, GT_EQ, IDENTIFIER, IF, IN, INTEGER, INTEGER_LITERAL, IN_SINGLE_LINE_COMMENT, IS, IS_ASSIGNED, JUMPTO, LOOP, LPAREN, LT, LT_EQ, MAX, MIN, MOD, NE, NEW_LINE, NOT, NULL, OR, PENDOWN, PENUP, PLUS, PROCEDURE, PUT, PUT_LINE, RANDOM, REM, RESETTURTLE, REVERSE, RPAREN, SEMI, SINGLE_LINE_COMMENT, SLASH, STAR, STRING_LITERAL, THEN, TRUE, TURN, TURNTO, USE, WHILE, WITH, tokenImage

Fields inherited from interface adalogo.lang.LangTreeConstants

JJTADDITIONNODE, JJTANDNODE, JJTASSIGNMENTIDENTIFIER, JJTASSIGNMENTSTATEMENT, JJTBOOLEANDECLARATIONNODE, JJTCOMPILATIONUNIT, JJTDASHNODE, JJTDECLARATION, JJTDIVISIONNODE, JJTELSEPART, JJTELSIFPART, JJTEQUALNODE, JJTEXITSTATEMENT, JJTFALSENODE, JJTFORIDENTIFIER, JJTFORREVERSE, JJTFORSTATEMENT, JJTFORWARDSTATEMENT, JJTGETXEXPRESSION, JJTGETYEXPRESSION, JJTGREATEREQUALNODE, JJTGREATERTHANNODE, JJTIDENTIFIER, JJTIFSTATEMENT, JJTINTEGERDECLARATIONNODE, JJTINTEGERLITERAL, JJTJUMPTOSTATEMENT, JJTLESSEQUALNODE, JJTLESSTHANNODE, JJTLOOPSTATEMENT, JJTMAXEXPRESSION, JJTMINEXPRESSION, JJTMODNODE, JJTMULTIPLICATIONNODE, JJTNEWLINESTATEMENT, JJTNOTEQUALNODE, JJTNOTNODE, JJTNULLSTATEMENT, JJTORNODE, JJTPENDOWNSTATEMENT, JJTPENUPSTATEMENT, JJTPROCEDURECALLSTATEMENT, JJTPROCEDURECALLSTATEMENTIDENTIFIER, JJTPROCEDURECALLSTATEMENTPARAMETERS, JJTPROCEDUREDECLARATION, JJTPROCEDUREDECLARATIONIDENTIFIER, JJTPROCEDUREDECLARATIONPARAMETERS, JJTPUTLINESTATEMENT, JJTPUTSTATEMENT, JJTRANDOMEXPRESSION, JJTREMNODE, JJTRESETTURTLESTATEMENT, JJTSEMI, JJTSEQUENCEOFSTATEMENT, JJTSTRINGLITERAL, JJTSUBTRACTIONNODE, JJTTRUENODE, JJTTURNSTATEMENT, JJTTURNTOSTATEMENT, JJTVARIABLEDECLARATION, JJTVARIABLEDECLARATIONIDENTIFIER, JJTVOID, JJTWHILESTATEMENT, jjtNodeName

Constructor Summary

Lang(LangTokenManager tm)
Lang(java.io.InputStream stream)
Lang(java.io.Reader stream)

Method Summary

void
AdditiveExpression()
void
AndExpression()
void
AssignmentIdentifier()
void
AssignmentStatement()
void
BooleanExpression()
void
BooleanLiteral()
SimpleNode
CompilationUnit()
void
Declaration()
void
ElsePart()
void
ElsifPart()
void
EqualityExpression()
void
ExitStatement()
void
ForIdentifier()
void
ForReverse()
void
ForStatement()
void
ForwardStatement()
void
GetXExpression()
void
GetYExpression()
void
Identifier()
void
IfStatement()
void
IntegerExpression()
void
IntegerLiteral()
void
JumpToStatement()
void
LoopStatement()
void
MaxExpression()
void
MinExpression()
void
MultiplicativeExpression()
void
NewLineStatement()
void
NullStatement()
void
OrExpression()
void
PenDownStatement()
void
PenUpStatement()
void
ProcedureCallStatement()
void
ProcedureCallStatementIdentifier()
void
ProcedureCallStatementParameters()
void
ProcedureDeclaration()
void
ProcedureDeclarationIdentifier()
void
ProcedureDeclarationParameters()
void
PutLineStatement()
void
PutStatement()
void
RandomExpression()
void
ReInit(LangTokenManager tm)
void
ReInit(java.io.InputStream stream)
void
ReInit(java.io.Reader stream)
void
RelationalExpression()
void
ResetTurtleStatement()
void
Semi()
void
SequenceOfStatement()
void
StringLiteral()
void
TurnStatement()
void
TurnToStatement()
void
UnaryBooleanExpression()
void
UnaryIntegerExpression()
void
VariableDeclaration()
void
VariableDeclarationIdentifier()
void
WhileStatement()
void
disable_tracing()
void
enable_tracing()
ParseException
generateParseException()
Token
getNextToken()
Token
getToken(int index)
static void
main(args[] )

Field Details

jjtree

protected adalogo.lang.JJTLangState jjtree


lookingAhead

public boolean lookingAhead


token, jj_nt

public Token token, jj_nt


token_source

public LangTokenManager token_source

Constructor Details

Lang

public Lang(LangTokenManager tm)


Lang

public Lang(java.io.InputStream stream)


Lang

public Lang(java.io.Reader stream)

Method Details

AdditiveExpression

public final void AdditiveExpression()
            throws ParseException


AndExpression

public final void AndExpression()
            throws ParseException


AssignmentIdentifier

public final void AssignmentIdentifier()
            throws ParseException


AssignmentStatement

public final void AssignmentStatement()
            throws ParseException


BooleanExpression

public final void BooleanExpression()
            throws ParseException


BooleanLiteral

public final void BooleanLiteral()
            throws ParseException


CompilationUnit

public final SimpleNode CompilationUnit()
            throws ParseException


Declaration

public final void Declaration()
            throws ParseException


ElsePart

public final void ElsePart()
            throws ParseException


ElsifPart

public final void ElsifPart()
            throws ParseException


EqualityExpression

public final void EqualityExpression()
            throws ParseException


ExitStatement

public final void ExitStatement()
            throws ParseException


ForIdentifier

public final void ForIdentifier()
            throws ParseException


ForReverse

public final void ForReverse()
            throws ParseException


ForStatement

public final void ForStatement()
            throws ParseException


ForwardStatement

public final void ForwardStatement()
            throws ParseException


GetXExpression

public final void GetXExpression()
            throws ParseException


GetYExpression

public final void GetYExpression()
            throws ParseException


Identifier

public final void Identifier()
            throws ParseException


IfStatement

public final void IfStatement()
            throws ParseException


IntegerExpression

public final void IntegerExpression()
            throws ParseException


IntegerLiteral

public final void IntegerLiteral()
            throws ParseException


JumpToStatement

public final void JumpToStatement()
            throws ParseException


LoopStatement

public final void LoopStatement()
            throws ParseException


MaxExpression

public final void MaxExpression()
            throws ParseException


MinExpression

public final void MinExpression()
            throws ParseException


MultiplicativeExpression

public final void MultiplicativeExpression()
            throws ParseException


NewLineStatement

public final void NewLineStatement()
            throws ParseException


NullStatement

public final void NullStatement()
            throws ParseException


OrExpression

public final void OrExpression()
            throws ParseException


PenDownStatement

public final void PenDownStatement()
            throws ParseException


PenUpStatement

public final void PenUpStatement()
            throws ParseException


ProcedureCallStatement

public final void ProcedureCallStatement()
            throws ParseException


ProcedureCallStatementIdentifier

public final void ProcedureCallStatementIdentifier()
            throws ParseException


ProcedureCallStatementParameters

public final void ProcedureCallStatementParameters()
            throws ParseException


ProcedureDeclaration

public final void ProcedureDeclaration()
            throws ParseException


ProcedureDeclarationIdentifier

public final void ProcedureDeclarationIdentifier()
            throws ParseException


ProcedureDeclarationParameters

public final void ProcedureDeclarationParameters()
            throws ParseException


PutLineStatement

public final void PutLineStatement()
            throws ParseException


PutStatement

public final void PutStatement()
            throws ParseException


RandomExpression

public final void RandomExpression()
            throws ParseException


ReInit

public void ReInit(LangTokenManager tm)


ReInit

public void ReInit(java.io.InputStream stream)


ReInit

public void ReInit(java.io.Reader stream)


RelationalExpression

public final void RelationalExpression()
            throws ParseException


ResetTurtleStatement

public final void ResetTurtleStatement()
            throws ParseException


Semi

public final void Semi()
            throws ParseException


SequenceOfStatement

public final void SequenceOfStatement()
            throws ParseException


StringLiteral

public final void StringLiteral()
            throws ParseException


TurnStatement

public final void TurnStatement()
            throws ParseException


TurnToStatement

public final void TurnToStatement()
            throws ParseException


UnaryBooleanExpression

public final void UnaryBooleanExpression()
            throws ParseException


UnaryIntegerExpression

public final void UnaryIntegerExpression()
            throws ParseException


VariableDeclaration

public final void VariableDeclaration()
            throws ParseException


VariableDeclarationIdentifier

public final void VariableDeclarationIdentifier()
            throws ParseException


WhileStatement

public final void WhileStatement()
            throws ParseException


disable_tracing

public final void disable_tracing()


enable_tracing

public final void enable_tracing()


generateParseException

public ParseException generateParseException()


getNextToken

public final Token getNextToken()


getToken

public final Token getToken(int index)


main

public static void main(args[] )
            throws ParseException