Uses of Class
slogo.jelan.GrammarElement

Packages that use GrammarElement
slogo.jelan.expressions   
slogo.jelan.instructions   
slogo.jelan.parser This package is responsible for parsing the language Elan. 
 

Uses of GrammarElement in slogo.jelan.expressions
 

Subclasses of GrammarElement in slogo.jelan.expressions
 class Addition
          Represents a + b, the addition of two expressions
 class BinaryExpression
          The base class of any binary expression, e.g., a + b, a - b, or, in future use, a < b and so on.
 class Division
          Represents a / b, the division of two expressions
 class Expression
          The base class of all arithmetic expressions, the evaluate method uses the hook/template method value to return a Double value, the template method returns a double.
 class Multiplication
          Represents a x b, the multiplication of two expressions
 class Negation
          Represents unary minus, e.g., -expression
 class Number
           
 class Subtraction
           
 class UnaryExpression
           
 class Variable
          A variable stores a value and can be used in an expression.
 

Uses of GrammarElement in slogo.jelan.instructions
 

Subclasses of GrammarElement in slogo.jelan.instructions
 class Assignment
          An assignment instruction assigns an expression to a variable, updating the global state to reflect the assignment.
 class Instruction
          Represents an instruction in the SLogo language
 class Print
          The Print instruction prints an expression.
 class Repeat
          An AST (abstract syntax tree) for a SLogo REPEAT instruction.
 class StrictInstructionList
          A list of instructions that doesn't include a function definition.
 

Uses of GrammarElement in slogo.jelan.parser
 

Methods in slogo.jelan.parser that return GrammarElement
 GrammarElement StrictInstructionListParser.parse(ElanInterpreter ep)
           
 GrammarElement RepeatParser.parse(ElanInterpreter ep)
           
 GrammarElement PrintParser.parse(ElanInterpreter ep)
           
 GrammarElement Parser.parse(ElanInterpreter ep)
           
 GrammarElement InstructionParser.parse(ElanInterpreter ep)
          Reads the next token from the parser, gets the appropriate parser for the token, continues parsing with the appropriate parser, returns the element parsed by the appropriate parser.
 GrammarElement IdentifierParser.parse(ElanInterpreter ep)
           
 GrammarElement ExpressionParser.parse(ElanInterpreter ep)
           
 GrammarElement AssignmentParser.parse(ElanInterpreter ep)