A B C D E F G H I J K L M N O P Q R S T U V W 

A

add(Instruction) - Method in class slogo.instruction.StrictInstructionList
Add an instruction to this list (FIFO order for execution).
add(String, Object) - Method in class slogo.TurtleContext
 
Addition - Class in slogo.expression
Represents a + b, the addition of two expressions
Addition(Expression, Expression) - Constructor for class slogo.expression.Addition
Represents an addition
addTurtleListener(TurtleListener) - Method in class jturtle.JTurtle
Add a listener.
APOSTROPHE - Static variable in class slogo.CharConsts
 
Assignment - Class in slogo.instruction
An assignment instruction assigns an expression to a variable, updating the global state to reflect the assignment.
Assignment(Variable, Expression) - Constructor for class slogo.instruction.Assignment
Construct an Assignment instruction from a variable and an expression, e.g., X = expression.
AssignmentParser - Class in slogo.parser
Parse an assignment statement, which looks like <id> <assignment_token, i.e., = > <expression>
AssignmentParser() - Constructor for class slogo.parser.AssignmentParser
 
AssignmentToken - Class in slogo.parser.token
Represents the assignment token ("=")
AssignmentToken() - Constructor for class slogo.parser.token.AssignmentToken
 
AT - Static variable in class slogo.CharConsts
 

B

BACK_SLASH - Static variable in class slogo.CharConsts
 
BANG - Static variable in class slogo.CharConsts
 
BinaryExpression - Class in slogo.expression
The base class of any binary expression, e.g., a + b, a - b, or, in future use, a < b and so on.
BinaryExpression(Expression, Expression) - Constructor for class slogo.expression.BinaryExpression
construct a binary expression from two subexpressions

C

CARET - Static variable in class slogo.CharConsts
 
caretEnd - Variable in class slogo.LanguageProcessor
 
caretStart - Variable in class slogo.LanguageProcessor
 
CharConsts - Class in slogo
Symbolic names for character constants
CharConsts() - Constructor for class slogo.CharConsts
 
CharToken - Class in slogo.parser.token
A token represented by a single character, e.g., '*', ';', '[' and so on; the method equals compares a CharToken as equal to another CharToken encapsulating the same character.
CharToken(int) - Constructor for class slogo.parser.token.CharToken
package only constructor
CharTokenFactory - Class in slogo.parser.token
Factory for generating CharToken objects ensuring that only one of any specific CharToken object is created (enforcing CharToken singleton-ness per char value)
CharTokenFactory() - Constructor for class slogo.parser.token.CharTokenFactory
 
COMMA - Static variable in class slogo.CharConsts
 
compareTo(Variable) - Method in class slogo.expression.Variable
Compare the variables by their names.
Context - Interface in slogo
Context is a hook for implementing language features that require an environment for evaluation.

D

description - Variable in exception slogo.parser.ParseException
 
Division - Class in slogo.expression
Represents a / b, the division of two expressions
Division(Expression, Expression) - Constructor for class slogo.expression.Division
Represents a division
doCommand() - Method in class jturtle.TurtleField
 
DOLLAR - Static variable in class slogo.CharConsts
 
doSteps() - Method in class jturtle.TurtleField
Make the turtle take some steps.
draw(Graphics) - Method in class jturtle.JTurtle
Draw the turtle, pass in a Graphics2D object.
draw() - Method in class jturtle.TurtleField.BufferedPanel
 
draw() - Method in class jturtle.TurtleField.DrawingPanel
 

E

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

F

FD - Class in slogo.instruction
 
FD(Expression) - Constructor for class slogo.instruction.FD
Constructs a FD instruction that can be executed.
FDExpression - Variable in class slogo.instruction.FD
 
FDParser - Class in slogo.parser
Parse a FORWARD Statement, which looks like FORWARD numOrVar [ instructionlist ]
FDParser() - Constructor for class slogo.parser.FDParser
 
FDToken - Class in slogo.parser.token
 
FDToken() - Constructor for class slogo.parser.token.FDToken
 
Filter - Class in slogo
 
Filter() - Constructor for class slogo.Filter
 
Forward - Class in slogo.instruction
 
Forward(Expression) - Constructor for class slogo.instruction.Forward
Constructs a Repeat instruction that can be executed.
forwardExpression - Variable in class slogo.instruction.Forward
 
ForwardParser - Class in slogo.parser
Parse a FORWARD Statement, which looks like FORWARD numOrVar [ instructionlist ]
ForwardParser() - Constructor for class slogo.parser.ForwardParser
 
ForwardToken - Class in slogo.parser.token
 
ForwardToken() - Constructor for class slogo.parser.token.ForwardToken
 

G

gelementsToValue - Static variable in class slogo.GrammarElement
 
getBounds(Rectangle) - Method in class jturtle.JTurtle
Mirrors the functionality of JComponent/Component.
getHeading() - Method in class jturtle.JTurtle
Returns the naive view of heading, 0 degrees = north
getInstance() - Static method in class slogo.expression.VariableFactory
There should only be one VariableFactory
getInstance() - Static method in class slogo.parser.ExpressionParser
 
getInstance() - Static method in class slogo.parser.InstructionParser
 
getInstance() - Static method in class slogo.parser.StrictInstructionListParser
 
getInstance() - Static method in class slogo.parser.token.EOFToken
 
getInstance() - Static method in class slogo.parser.token.EOLToken
 
getMoveSize() - Method in class jturtle.TurtleField
Returns step size as currently selected.
getNames() - Static method in class slogo.parser.InstructionNames
 
getPoint() - Method in class jturtle.JTurtle
Returns the turtle's point (should be centroid)
getToken() - Method in class slogo.parser.SLogoParser
returns the current token, doesn't fetch a new one
getToken(int) - Static method in class slogo.parser.token.CharTokenFactory
 
getVariable(IdentifierToken) - Static method in class slogo.expression.VariableFactory
Determines the variable represented by the given id
GrammarElement - Class in slogo
All elements of the SLogo language (e.g., that make up an abstract syntax tree) should extend GrammarElement.
GrammarElement() - Constructor for class slogo.GrammarElement
 
GREATER_THAN - Static variable in class slogo.CharConsts
 

H

HEIGHT - Static variable in class jturtle.JTurtle
 

I

id - Variable in class slogo.parser.token.IdentifierToken
 
IdentifierParser - Class in slogo.parser
Parser for identifiers
IdentifierParser() - Constructor for class slogo.parser.IdentifierParser
 
IdentifierToken - Class in slogo.parser.token
Represents an identifier (a variable name)
IdentifierToken() - Constructor for class slogo.parser.token.IdentifierToken
 
IdentifierToken(String) - Constructor for class slogo.parser.token.IdentifierToken
 
ImageRenderer - Class in jturtle
 
ImageRenderer(Image) - Constructor for class jturtle.ImageRenderer
 
init() - Method in class jturtle.TurtleField.CommandFrame
 
init() - Method in class jturtle.TurtleField
 
initialize() - Static method in class slogo.parser.InstructionNames
initialize the class by reading the instructions from a property file
insertString(DocumentFilter.FilterBypass, int, String, AttributeSet) - Method in class slogo.Filter
 
Instruction - Class in slogo.instruction
Represents an instruction in the SLogo language
Instruction() - Constructor for class slogo.instruction.Instruction
 
InstructionChecker - Class in slogo.parser
 
InstructionChecker() - Constructor for class slogo.parser.InstructionChecker
 
instructionList - Variable in class slogo.instruction.Repeat
 
InstructionNames - Class in slogo.parser
Reads the file of instruction names.
InstructionNames() - Constructor for class slogo.parser.InstructionNames
 
InstructionParser - Class in slogo.parser
Instruction Parser - calls appropriate Parser for each Instruction
InstructionParser() - Constructor for class slogo.parser.InstructionParser
Create the InstructionParser--generates a map of classes to parsers
instructions - Static variable in class slogo.parser.InstructionNames
 
isAddOrSubtractToken(Token) - Method in class slogo.parser.ExpressionParser
 
isMultOrDivToken(Token) - Method in class slogo.parser.ExpressionParser
 
iterator() - Method in class slogo.instruction.StrictInstructionList
Return an iterator for accessing all the instructions.

J

jturtle - package jturtle
 
JTurtle - Class in jturtle
This class is a simple MoboLogo/Slogo turtle model for illustrating rudimentary MVC for turtles and simple Graphics2D concepts
JTurtle() - Constructor for class jturtle.JTurtle
Create a turtle using the default (triangle) image.
JTurtle(Image) - Constructor for class jturtle.JTurtle
Creates a turtle using the given image
JTurtle(Renderer) - Constructor for class jturtle.JTurtle
 

K

keyPressed(KeyEvent) - Method in class jturtle.TurtleField.CommandFrame
 
keyReleased(KeyEvent) - Method in class jturtle.TurtleField.CommandFrame
 
keyTyped(KeyEvent) - Method in class jturtle.TurtleField.CommandFrame
 

L

LanguageProcessor - Class in slogo
 
LanguageProcessor(SLogoParser) - Constructor for class slogo.LanguageProcessor
 
LEFT_BRACE - Static variable in class slogo.CharConsts
 
LEFT_BRACKET - Static variable in class slogo.CharConsts
 
LEFT_PAREN - Static variable in class slogo.CharConsts
 
LeftBracketToken - Class in slogo.parser.token
Represents a left bracket
LeftBracketToken() - Constructor for class slogo.parser.token.LeftBracketToken
 
LeftParenToken - Class in slogo.parser.token
Represents a left parenthesis
LeftParenToken() - Constructor for class slogo.parser.token.LeftParenToken
 
leftValue(Context) - Method in class slogo.expression.BinaryExpression
 
LESS_THAN - Static variable in class slogo.CharConsts
 

M

main(String[]) - Static method in class jturtle.TurtleField
 
main(String[]) - Static method in class slogo.parser.SLogoParser
Basic driver for SLogoParser
MAIN_TURTLE_NAME - Static variable in class jturtle.TurtleField
 
MAIN_TURTLE_NAME - Static variable in interface slogo.Context
 
makeDashBoard(JPanel) - Method in class jturtle.TurtleField
Where turtle info is displayed
makeImage(String, Component) - Method in class jturtle.TurtleField
 
makeSlider(JPanel) - Method in class jturtle.TurtleField
make a slider to set the turtle's heading
makeTextArea() - Method in class jturtle.TurtleField
 
makeTextField() - Method in class jturtle.TurtleField
 
match(Token) - Method in class slogo.parser.SLogoParser
try to match a token, if unsuccessful throw an exception, otherwise match succeeds, and next token is obtained and returned
MINUS - Static variable in class slogo.CharConsts
 
MinusToken - Class in slogo.parser.token
Represents a minus sign
MinusToken() - Constructor for class slogo.parser.token.MinusToken
 
MOD - Static variable in class slogo.CharConsts
 
move(int) - Method in class jturtle.JTurtle
Moves the turtle forward.
Multiplication - Class in slogo.expression
Represents a x b, the multiplication of two expressions
Multiplication(Expression, Expression) - Constructor for class slogo.expression.Multiplication
Represents a multiplication
myAngle - Variable in class jturtle.TurtleField
 
myBoundingBox - Variable in class jturtle.TurtleField.BufferedPanel
 
myContext - Variable in class jturtle.TurtleField
 
myContext - Variable in class slogo.parser.SLogoParser
 
myDisplay - Variable in class jturtle.TurtleField
 
myExpression - Variable in class slogo.expression.UnaryExpression
 
myExpression - Variable in class slogo.instruction.Assignment
 
myExpression - Variable in class slogo.instruction.Print
 
myFilter - Variable in class slogo.LanguageProcessor
 
myFont - Variable in class jturtle.TurtleField
 
myHeading - Variable in class jturtle.JTurtle
 
myImage - Variable in class jturtle.ImageRenderer
 
myInstructionList - Variable in class slogo.instruction.StrictInstructionList
 
myLeft - Variable in class slogo.expression.BinaryExpression
 
myListeners - Variable in class jturtle.JTurtle
 
myName - Variable in class slogo.expression.Variable
 
myNextPoint - Variable in class jturtle.JTurtle
 
myParser - Variable in class jturtle.TurtleField
 
myParser - Variable in class slogo.LanguageProcessor
 
myParser - Variable in class slogo.parser.ExpressionParser
 
myParserMap - Variable in class slogo.parser.InstructionParser
 
myPoint - Variable in class jturtle.JTurtle
 
myProcessor - Variable in class jturtle.TurtleField
 
myRenderer - Variable in class jturtle.JTurtle
 
myReservedValue - Variable in class slogo.parser.token.ReservedToken
 
myRight - Variable in class slogo.expression.BinaryExpression
 
myShape - Variable in class jturtle.PolyRenderer
 
myStepSize - Variable in class jturtle.TurtleField
 
mySymbol - Variable in class slogo.expression.BinaryExpression
 
myText - Variable in class jturtle.TurtleField.CommandFrame
 
myText - Variable in class jturtle.TurtleField
 
myToken - Variable in class slogo.parser.SLogoParser
 
myTokenizer - Variable in class slogo.parser.SLogoParser
 
myTurtle - Variable in class jturtle.TurtleField
 
myValue - Variable in class slogo.expression.Number
 
myValue - Variable in class slogo.parser.token.CharToken
 
myValue - Variable in class slogo.parser.token.NumberToken
 
myValue - Variable in class slogo.parser.token.VariableToken
 
myVariable - Variable in class slogo.instruction.Assignment
 
myXPoint - Variable in class jturtle.TurtleField
 
myYPoint - Variable in class jturtle.TurtleField
 

N

Negation - Class in slogo.expression
Represents unary minus, e.g., -expression
Negation(Expression) - Constructor for class slogo.expression.Negation
Represents a negation
nextToken() - Method in class slogo.parser.SLogoParser
get the next token and store it for retrieval by getToken()
notifyListeners() - Method in class jturtle.JTurtle
Ask all registered listeners to process this turtle
Number - Class in slogo.expression
Represents a number
Number(double) - Constructor for class slogo.expression.Number
Represents a number
NumberToken - Class in slogo.parser.token
Represents a number (using doubles).
NumberToken(double) - Constructor for class slogo.parser.token.NumberToken
Constructs a token representing value

O

ourInstance - Static variable in class slogo.expression.VariableFactory
 
ourInstance - Static variable in class slogo.parser.ExpressionParser
 
ourInstance - Static variable in class slogo.parser.InstructionParser
 
ourInstance - Static variable in class slogo.parser.StrictInstructionListParser
 
ourInstance - Static variable in class slogo.parser.token.EOFToken
 
ourInstance - Static variable in class slogo.parser.token.EOLToken
 

P

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
 

Q

QUESTION - Static variable in class slogo.CharConsts
 
QUOTE - Static variable in class slogo.CharConsts
 

R

remove(DocumentFilter.FilterBypass, int, int) - Method in class slogo.Filter
 
Renderer - Class in jturtle
 
Renderer() - Constructor for class jturtle.Renderer
 
Repeat - Class in slogo.instruction
An AST (abstract syntax tree) for a SLogo REPEAT instruction.
Repeat(Expression, StrictInstructionList) - Constructor for class slogo.instruction.Repeat
Constructs a Repeat instruction that can be executed.
repeatExpression - Variable in class slogo.instruction.Repeat
 
RepeatParser - Class in slogo.parser
Parse a REPEAT Statement, which looks like REPEAT numOrVar [ instructionlist ]
RepeatParser() - Constructor for class slogo.parser.RepeatParser
 
RepeatToken - Class in slogo.parser.token
Represents a REPEAT instruction token
RepeatToken() - Constructor for class slogo.parser.token.RepeatToken
 
replace(DocumentFilter.FilterBypass, int, int, String, AttributeSet) - Method in class slogo.Filter
 
ReservedToken - Class in slogo.parser.token
Represents a reserved word
ReservedToken(String) - Constructor for class slogo.parser.token.ReservedToken
 
reset() - Method in class jturtle.JTurtle
Reposition turtle at the origin, facing north.
Right - Class in slogo.instruction
 
Right(Expression) - Constructor for class slogo.instruction.Right
Constructs a Right instruction that can be executed.
RIGHT_BRACE - Static variable in class slogo.CharConsts
 
RIGHT_BRACKET - Static variable in class slogo.CharConsts
 
RIGHT_PAREN - Static variable in class slogo.CharConsts
 
RightBracketToken - Class in slogo.parser.token
Represents a right bracket
RightBracketToken() - Constructor for class slogo.parser.token.RightBracketToken
 
rightExpression - Variable in class slogo.instruction.Right
 
RightParenToken - Class in slogo.parser.token
Represents a right parenthesis
RightParenToken() - Constructor for class slogo.parser.token.RightParenToken
 
RightParser - Class in slogo.parser
Parse a RIGHT Statement, which looks like RIGHT numOrVar
RightParser() - Constructor for class slogo.parser.RightParser
 
RightToken - Class in slogo.parser.token
 
RightToken() - Constructor for class slogo.parser.token.RightToken
 
rightValue(Context) - Method in class slogo.expression.BinaryExpression
 

S

SEMI_COLON - Static variable in class slogo.CharConsts
 
serialVersionUID - Static variable in class jturtle.TurtleField.BufferedPanel
 
serialVersionUID - Static variable in class jturtle.TurtleField.DrawingPanel
 
setHeading(int) - Method in class jturtle.JTurtle
Set heading in degrees, notify listeners.
setHeading(double) - Method in class jturtle.JTurtle
Set heading in radians, notify listeners.
setPoint(Point2D) - Method in class jturtle.JTurtle
Sets the turtles point, notifies listeners.
setPromptPosition(int) - Method in class slogo.Filter
 
setTurtle(JTurtle) - Method in class jturtle.TurtleField
 
setup(JTextArea) - Method in class slogo.LanguageProcessor
 
showAngle(int) - Method in class jturtle.TurtleField
Display (Turtle's) angle
showPoint(Point2D) - Method in class jturtle.TurtleField
display Turtle's point information
SLASH - Static variable in class slogo.CharConsts
 
SlashToken - Class in slogo.parser.token
Represents a slash
SlashToken() - Constructor for class slogo.parser.token.SlashToken
 
slogo - package slogo
 
slogo.expression - package slogo.expression
 
slogo.instruction - package slogo.instruction
 
slogo.parser - package slogo.parser
This package is responsible for parsing the language SLogo.
slogo.parser.token - package slogo.parser.token
 
SLogoParser - Class in slogo.parser
Illustrates the java.io.StreamTokenizer class and how it can be used to parse tokens for a subset of the SLogo programming language.
SLogoParser(Context) - Constructor for class slogo.parser.SLogoParser
 
STAR - Static variable in class slogo.CharConsts
 
START_X - Static variable in class jturtle.JTurtle
 
START_Y - Static variable in class jturtle.JTurtle
 
StarToken - Class in slogo.parser.token
Represents an asterisk token
StarToken() - Constructor for class slogo.parser.token.StarToken
 
StrictInstructionList - Class in slogo.instruction
A list of instructions that doesn't include a function definition.
StrictInstructionList() - Constructor for class slogo.instruction.StrictInstructionList
Construct an empty list of instructions.
StrictInstructionListParser - Class in slogo.parser
The parser for lists of instructions.
StrictInstructionListParser() - Constructor for class slogo.parser.StrictInstructionListParser
 
Subtraction - Class in slogo.expression
Represents a subtraction (e.g., lhs - rhs)
Subtraction(Expression, Expression) - Constructor for class slogo.expression.Subtraction
Represents a subtraction

T

TILDE - Static variable in class slogo.CharConsts
 
Token - Interface in slogo.parser.token
currently this is a flag interface
TokenFactory - Class in slogo.parser.token
Parses a stream into tokens
TokenFactory() - Constructor for class slogo.parser.token.TokenFactory
 
tokenList - Static variable in class slogo.parser.token.CharTokenFactory
 
tokenNameToToken - Static variable in class slogo.parser.token.TokenFactory
 
toString() - Method in class slogo.expression.BinaryExpression
Combine left/right subexpressions, return result using symbol as the combiner/juxtaposer for the subexpressions.
toString() - Method in class slogo.expression.Negation
Format -expression
toString() - Method in class slogo.expression.Number
 
toString() - Method in class slogo.expression.UnaryExpression
 
toString() - Method in class slogo.expression.Variable
 
toString() - Method in class slogo.instruction.Assignment
Returns a String for this instruction.
toString() - Method in class slogo.instruction.FD
 
toString() - Method in class slogo.instruction.Forward
 
toString() - Method in class slogo.instruction.Print
 
toString() - Method in class slogo.instruction.Repeat
 
toString() - Method in class slogo.instruction.Right
 
toString() - Method in class slogo.instruction.StrictInstructionList
Return a string indicating the # of instructions in the list
toString() - Method in exception slogo.parser.ParseException
 
toString() - Method in class slogo.parser.token.CharToken
 
toString() - Method in class slogo.parser.token.EOFToken
 
toString() - Method in class slogo.parser.token.EOLToken
 
toString() - Method in class slogo.parser.token.IdentifierToken
 
toString() - Method in class slogo.parser.token.NumberToken
 
toString() - Method in class slogo.parser.token.ReservedToken
 
toString() - Method in class slogo.parser.token.VariableToken
 
trail - Variable in class jturtle.JTurtle
 
trueHeading() - Method in class jturtle.JTurtle
Return the real/true heading of the turtle.
TurtleContext - Class in slogo
 
TurtleContext() - Constructor for class slogo.TurtleContext
 
turtleDict - Variable in class slogo.TurtleContext
 
TurtleField - Class in jturtle
Rudimentary view showing turtles and MVC.
TurtleField(String) - Constructor for class jturtle.TurtleField
Creates a view of the turtle, given by the name of the turtle image
TurtleField() - Constructor for class jturtle.TurtleField
Creates a view of the turtle, using the default turtle representation
TurtleField.BufferedPanel - Class in jturtle
Overkill with double buffering on by default, but shows how to do it.
TurtleField.BufferedPanel() - Constructor for class jturtle.TurtleField.BufferedPanel
 
TurtleField.CommandFrame - Class in jturtle
 
TurtleField.CommandFrame(JTextArea) - Constructor for class jturtle.TurtleField.CommandFrame
 
TurtleField.DrawingPanel - Class in jturtle
 
TurtleField.DrawingPanel() - Constructor for class jturtle.TurtleField.DrawingPanel
 
TurtleListener - Interface in jturtle
A simple listener interface that listens to changes to the turtle and processes them, as appropriate.

U

UnaryExpression - Class in slogo.expression
Represents a unary expression
UnaryExpression(Expression) - Constructor for class slogo.expression.UnaryExpression
Represents a unary expression
UNDER_SCORE - Static variable in class slogo.CharConsts
 

V

value(String) - Method in interface slogo.Context
If there are local/global variables, a variable might have a different value depending on the Context, so Contexts should support determining the value of an identifier (this method may be superfluous).
value(Context) - Method in class slogo.expression.Addition
 
value(Context) - Method in class slogo.expression.Division
 
value(Context) - Method in class slogo.expression.Expression
 
value(Context) - Method in class slogo.expression.Multiplication
 
value(Context) - Method in class slogo.expression.Negation
 
value(Context) - Method in class slogo.expression.Number
 
value(Context) - Method in class slogo.expression.Subtraction
 
value(Context) - Method in class slogo.expression.UnaryExpression
 
value(Context) - Method in class slogo.expression.Variable
 
value() - Method in class slogo.parser.token.CharToken
 
value() - Method in class slogo.parser.token.IdentifierToken
 
value() - Method in class slogo.parser.token.NumberToken
 
value() - Method in class slogo.parser.token.ReservedToken
 
value() - Method in class slogo.parser.token.VariableToken
 
value(String) - Method in class slogo.TurtleContext
 
Variable - Class in slogo.expression
A variable stores a value and can be used in an expression.
Variable(String) - Constructor for class slogo.expression.Variable
Represents a variable
VariableFactory - Class in slogo.expression
Clients can use this class to obtain a unique variable per identifier (avoiding a proliferation of objects)
VariableFactory() - Constructor for class slogo.expression.VariableFactory
 
VariableToken - Class in slogo.parser.token
Represents a variable
VariableToken(String) - Constructor for class slogo.parser.token.VariableToken
 
varnameToVariable - Static variable in class slogo.expression.VariableFactory
 

W

WIDTH - Static variable in class jturtle.JTurtle
 
A B C D E F G H I J K L M N O P Q R S T U V W