- EOFToken - Class in slogo.parser.token
-
This represents an end-of-file token Uses the singleton pattern since there's
no reason to have more than one such token.
- EOFToken() - Constructor for class slogo.parser.token.EOFToken
-
- EOLToken - Class in slogo.parser.token
-
This represents an end-of-line token Uses the singleton pattern since there's
no reason to have more than one such token.
- EOLToken() - Constructor for class slogo.parser.token.EOLToken
-
- EQUAL - Static variable in class slogo.CharConsts
-
- equals(Object) - Method in class slogo.expression.Variable
-
Determines equality based on the Variable's name
- equals(Object) - Method in class slogo.parser.token.CharToken
-
- equals(CharToken) - Method in class slogo.parser.token.CharToken
-
- equals(Object) - Method in class slogo.parser.token.EOFToken
-
- equals(Object) - Method in class slogo.parser.token.EOLToken
-
- equals(Object) - Method in class slogo.parser.token.IdentifierToken
-
Determines if the other object is an IdentifierToken with the same id
- equals(IdentifierToken) - Method in class slogo.parser.token.IdentifierToken
-
- equals(Object) - Method in class slogo.parser.token.NumberToken
-
- equals(NumberToken) - Method in class slogo.parser.token.NumberToken
-
- equals(Object) - Method in class slogo.parser.token.ReservedToken
-
Determines equality by if these are both ReservedTokens with the same
value.
- equals(Object) - Method in class slogo.parser.token.VariableToken
-
- equals(VariableToken) - Method in class slogo.parser.token.VariableToken
-
- EqualToken - Class in slogo.parser.token
-
Represents = token
- EqualToken() - Constructor for class slogo.parser.token.EqualToken
-
- error(Token) - Method in class slogo.parser.SLogoParser
-
- evaluate(Context) - Method in class slogo.expression.Expression
-
uses the hook/template method value to return a Double
- evaluate(Context) - Method in class slogo.GrammarElement
-
Evaluate this language construct in some context.
- evaluate(Context) - Method in class slogo.instruction.Assignment
-
Evaluate the expression that's part of this instruction and update a
global map/store to record the assignment of the expression to the
variable.
- evaluate(Context) - Method in class slogo.instruction.FD
-
Evaluate this instruction in a Context.
- evaluate(Context) - Method in class slogo.instruction.Forward
-
Evaluate this instruction in a Context.
- evaluate(Context) - Method in class slogo.instruction.Instruction
-
- evaluate(Context) - Method in class slogo.instruction.Print
-
Evaluate the expression and println it.
- evaluate(Context) - Method in class slogo.instruction.Repeat
-
Evaluate this instruction in a Context.
- evaluate(Context) - Method in class slogo.instruction.Right
-
Evaluate this instruction in a Context.
- evaluate(Context) - Method in class slogo.instruction.StrictInstructionList
-
Evaluate this instruction in a Context, return the result of the
evaluation (the result is the last instruction executed).
- Expression - Class in slogo.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.
- Expression() - Constructor for class slogo.expression.Expression
-
- ExpressionParser - Class in slogo.parser
-
This is a recursive descent parser for parsing expressions using the standard
grammar for expressions (follows).
- ExpressionParser() - Constructor for class slogo.parser.ExpressionParser
-
Parse expressions from a parser
- paint(Graphics2D) - Method in class jturtle.ImageRenderer
-
- paint(Graphics2D) - Method in class jturtle.PolyRenderer
-
- paint(Graphics2D) - Method in class jturtle.Renderer
-
- paintTrail(Graphics) - Method in class jturtle.JTurtle
-
- parse(SLogoParser) - Method in class slogo.parser.AssignmentParser
-
parses an assignment statement, which looks like
id = expression
- parse(SLogoParser) - Method in class slogo.parser.ExpressionParser
-
parses the expression with the given parser
- parse(SLogoParser) - Method in class slogo.parser.FDParser
-
Parses a FD instruction
- parse(SLogoParser) - Method in class slogo.parser.ForwardParser
-
Parses a FORWARD instruction
- parse(SLogoParser) - Method in class slogo.parser.IdentifierParser
-
parses an assignment, throws an exception if not in correct format
- parse(SLogoParser) - Method in class slogo.parser.InstructionParser
-
gets the appropriate parser to parse the token
- parse(SLogoParser) - Method in interface slogo.parser.Parser
-
- parse(SLogoParser) - Method in class slogo.parser.PrintParser
-
parses a print instruction
- parse(SLogoParser) - Method in class slogo.parser.RepeatParser
-
Parses a REPEAT instruction
- parse(SLogoParser) - Method in class slogo.parser.RightParser
-
Parses a RIGHT instruction
- parse(Reader) - Method in class slogo.parser.SLogoParser
-
parses an expression and prints the result of evaluating the expression.
- parse(SLogoParser) - Method in class slogo.parser.StrictInstructionListParser
-
Parses the instructions list
- parse(StreamTokenizer) - Static method in class slogo.parser.token.TokenFactory
-
- ParseException - Exception in slogo.parser
-
A specialized exception class for parsing errors
- ParseException(String) - Constructor for exception slogo.parser.ParseException
-
- parseExpression() - Method in class slogo.parser.ExpressionParser
-
- parseFactor() - Method in class slogo.parser.ExpressionParser
-
- Parser - Interface in slogo.parser
-
The interface that all parsers must implement
- parseTerm() - Method in class slogo.parser.ExpressionParser
-
- penDown - Variable in class jturtle.JTurtle
-
- PERIOD - Static variable in class slogo.CharConsts
-
- PLUS - Static variable in class slogo.CharConsts
-
- PlusToken - Class in slogo.parser.token
-
Represents a plus sign
- PlusToken() - Constructor for class slogo.parser.token.PlusToken
-
- PolyRenderer - Class in jturtle
-
- PolyRenderer() - Constructor for class jturtle.PolyRenderer
-
- Print - Class in slogo.instruction
-
The Print instruction prints an expression.
- Print(Expression) - Constructor for class slogo.instruction.Print
-
Represents a Print expression
- PrintParser - Class in slogo.parser
-
The parser for the print instruction
- PrintParser() - Constructor for class slogo.parser.PrintParser
-
- PrintToken - Class in slogo.parser.token
-
Represents the PRINT instruction token
- PrintToken() - Constructor for class slogo.parser.token.PrintToken
-
- Process(JTextArea) - Method in class slogo.LanguageProcessor
-
- processTurtle(JTurtle) - Method in class jturtle.TurtleField
-
Process a (changed) turtle, display properties and redraw.
- processTurtle(JTurtle) - Method in interface jturtle.TurtleListener
-
- promptPosition - Variable in class slogo.Filter
-
- PROPFILE - Static variable in class slogo.parser.InstructionNames
-