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

S

s0 - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
s1 - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
s2 - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
S2K - Class in <Unnamed>
This class is an entry point to the spiglet-to-kanga translator functionality testing unit.
S2K() - Constructor for class S2K
 
S2K - Class in spiglet.translate
Entry point to the spiglet package's unit testing.
S2K() - Constructor for class spiglet.translate.S2K
 
s3 - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
s4 - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
s5 - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
s6 - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
s7 - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
saveCaleeRegisters() - Method in class spiglet.translate.KangaContext
Given the mapping of variables and kanga storage constructs (registers) in this context, generate code that pushes the values stored in callee-saved registers in the mapping onto the stack.
saveCalerRegisters() - Method in class spiglet.translate.KangaContext
Given the mapping of variables and kanga storage constructs (registers) in this context, generate code that pushes the values stored in caller-saved registers in the mapping onto the stack.
SCRATCH_0 - Static variable in enum kanga.meta.KangaReg
The designated "scratch" register.
SCRATCH_1 - Static variable in enum kanga.meta.KangaReg
The designated "scratch" register.
SEMICOLON - Static variable in interface minijava.parser.MJParserConstants
RegularExpression Id.
setCurrentClass(Class) - Method in class minijava.translate.PigletContext
 
setCurrentClass(Class) - Method in class minijava.typecheck.TypeChecker
 
setDebugStream(PrintStream) - Method in class kanga.parser.KangaParserTokenManager
Set debug output.
setDebugStream(PrintStream) - Method in class minijava.parser.MJParserTokenManager
Set debug output.
setDebugStream(PrintStream) - Method in class piglet.parser.PigletParserTokenManager
Set debug output.
setDebugStream(PrintStream) - Method in class spiglet.parser.SpigletParserTokenManager
Set debug output.
setParent(Class) - Method in class minijava.typecheck.Class
 
setReturnType(Type) - Method in class minijava.typecheck.Method
 
setTabSize(int) - Method in class kanga.parser.JavaCharStream
 
setTabSize(int) - Method in class minijava.parser.JavaCharStream
 
setTabSize(int) - Method in class piglet.parser.JavaCharStream
 
setTabSize(int) - Method in class spiglet.parser.JavaCharStream
 
simple - package simple
 
simple.lexer - package simple.lexer
 
simple.parser - package simple.parser
 
simple.tree - package simple.tree
 
simple.visitor - package simple.visitor
 
SimpleExp() - Method in class kanga.parser.KangaParser
 
simpleExp - Variable in class kanga.syntaxtree.BinOp
 
simpleExp - Variable in class kanga.syntaxtree.CallStmt
 
simpleExp - Variable in class kanga.syntaxtree.HAllocate
 
simpleExp - Variable in class kanga.syntaxtree.PrintStmt
 
SimpleExp - Class in kanga.syntaxtree
Grammar production:
SimpleExp(NodeChoice) - Constructor for class kanga.syntaxtree.SimpleExp
 
SimpleExp() - Method in class spiglet.parser.SpigletParser
 
simpleExp - Variable in class spiglet.syntaxtree.BinOp
 
simpleExp - Variable in class spiglet.syntaxtree.Call
 
simpleExp - Variable in class spiglet.syntaxtree.HAllocate
 
simpleExp - Variable in class spiglet.syntaxtree.PrintStmt
 
SimpleExp - Class in spiglet.syntaxtree
Grammar production:
SimpleExp(NodeChoice) - Constructor for class spiglet.syntaxtree.SimpleExp
 
simpleExp - Variable in class spiglet.syntaxtree.StmtExp
 
SimpleParser - Class in simple.parser
This class defines a object that parses a stream of Token generated by Lexer using the following LL(1) grammar:
SimpleParser(String) - Constructor for class simple.parser.SimpleParser
Creates a parser object, passing it a source expression string.
SINGLE_LINE_COMMENT - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
SINGLE_LINE_COMMENT - Static variable in interface minijava.parser.MJParserConstants
RegularExpression Id.
SINGLE_LINE_COMMENT - Static variable in interface piglet.parser.PigletParserConstants
RegularExpression Id.
SINGLE_LINE_COMMENT - Static variable in interface spiglet.parser.SpigletParserConstants
RegularExpression Id.
size() - Method in class kanga.syntaxtree.NodeList
 
size() - Method in interface kanga.syntaxtree.NodeListInterface
 
size() - Method in class kanga.syntaxtree.NodeListOptional
 
size() - Method in class kanga.syntaxtree.NodeSequence
 
size() - Method in class minijava.syntaxtree.NodeList
 
size() - Method in interface minijava.syntaxtree.NodeListInterface
 
size() - Method in class minijava.syntaxtree.NodeListOptional
 
size() - Method in class minijava.syntaxtree.NodeSequence
 
size() - Method in class piglet.syntaxtree.NodeList
 
size() - Method in interface piglet.syntaxtree.NodeListInterface
 
size() - Method in class piglet.syntaxtree.NodeListOptional
 
size() - Method in class piglet.syntaxtree.NodeSequence
 
size() - Method in class spiglet.syntaxtree.NodeList
 
size() - Method in interface spiglet.syntaxtree.NodeListInterface
 
size() - Method in class spiglet.syntaxtree.NodeListOptional
 
size() - Method in class spiglet.syntaxtree.NodeSequence
 
sp - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
sp - Variable in class spiglet.translate.KangaContext
The stack pointer.
space() - Method in class kanga.visitor.TreeFormatter
A Space command simply adds one or a user-specified number of spaces between tokens.
space(int) - Method in class kanga.visitor.TreeFormatter
 
space() - Method in class minijava.visitor.TreeFormatter
A Space command simply adds one or a user-specified number of spaces between tokens.
space(int) - Method in class minijava.visitor.TreeFormatter
 
space() - Method in class piglet.visitor.TreeFormatter
A Space command simply adds one or a user-specified number of spaces between tokens.
space(int) - Method in class piglet.visitor.TreeFormatter
 
space() - Method in class spiglet.visitor.TreeFormatter
A Space command simply adds one or a user-specified number of spaces between tokens.
space(int) - Method in class spiglet.visitor.TreeFormatter
 
specialToken - Variable in class kanga.parser.Token
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.
specialToken - Variable in class minijava.parser.Token
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.
specialToken - Variable in class piglet.parser.Token
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.
specialToken - Variable in class spiglet.parser.Token
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.
specialTokens - Variable in class kanga.syntaxtree.NodeToken
 
specialTokens - Variable in class minijava.syntaxtree.NodeToken
 
specialTokens - Variable in class piglet.syntaxtree.NodeToken
 
specialTokens - Variable in class spiglet.syntaxtree.NodeToken
 
spiglet.meta - package spiglet.meta
 
spiglet.parser - package spiglet.parser
 
spiglet.syntaxtree - package spiglet.syntaxtree
 
spiglet.translate - package spiglet.translate
 
spiglet.translate.graph - package spiglet.translate.graph
 
spiglet.util - package spiglet.util
 
spiglet.visitor - package spiglet.visitor
 
SpigletContext - Class in piglet.translate
This class represents a context in a given step of translation between Piglet and Spiglet.
SpigletContext(Node, Map<String, SpigletTemp>) - Constructor for class piglet.translate.SpigletContext
Creates a SpigletContext with the given context node and pre-made variable mapping.
SpigletContext(Node) - Constructor for class piglet.translate.SpigletContext
Creates a SpigletContext with the given context node and an empty variable mapping.
SpigletFlowGraph - Class in spiglet.translate.graph
This class represents the (finally) concrete control flow graph of a Spiglet thread of execution.
SpigletFlowGraph(StmtList) - Constructor for class spiglet.translate.graph.SpigletFlowGraph
Constructs a flow graph for a Spiglet thread.
SpigletFlowGraph(StmtExp) - Constructor for class spiglet.translate.graph.SpigletFlowGraph
Constructs a flow graph for a Spiglet thread with a return expression.
SpigletFormatter - Class in spiglet.visitor
A pretty printer visitor designed to be used together with TreeDumper to generate a formatted string that is the Spiglet code.
SpigletFormatter() - Constructor for class spiglet.visitor.SpigletFormatter
 
SpigletLabel - Class in spiglet.meta
This class represents a Label that can be used in creating a Label node in a Spiglet syntaxtree.
SpigletParser - Class in spiglet.parser
 
SpigletParser(InputStream) - Constructor for class spiglet.parser.SpigletParser
Constructor with InputStream.
SpigletParser(InputStream, String) - Constructor for class spiglet.parser.SpigletParser
Constructor with InputStream and supplied encoding
SpigletParser(Reader) - Constructor for class spiglet.parser.SpigletParser
Constructor.
SpigletParser(SpigletParserTokenManager) - Constructor for class spiglet.parser.SpigletParser
Constructor with generated Token Manager.
SpigletParserConstants - Interface in spiglet.parser
Token literal values and constants.
SpigletParserTokenManager - Class in spiglet.parser
Token Manager.
SpigletParserTokenManager(JavaCharStream) - Constructor for class spiglet.parser.SpigletParserTokenManager
Constructor.
SpigletParserTokenManager(JavaCharStream, int) - Constructor for class spiglet.parser.SpigletParserTokenManager
Constructor.
SpigletResult - Class in piglet.translate
The result of visiting a Piglet expression subtree in translating to Spiglet.
SpigletResult(SimpleExp) - Constructor for class piglet.translate.SpigletResult
Wraps a simple expression as a result.
SpigletStatement - Class in spiglet.meta
This class represents the metadata of a single statement in a Spiglet thread.
SpigletStatement(Label, Stmt) - Constructor for class spiglet.meta.SpigletStatement
Creates a statement metadata object.
SpigletStatement(SimpleExp) - Constructor for class spiglet.meta.SpigletStatement
Creates a "statement" metadata object that encodes the information in a SimpleExp expression as if it was a statement.
SpigletStatement.Type - Enum in spiglet.meta
 
SpigletTemp - Class in spiglet.meta
This class represents a Temp object (immutable) that can be used in the creation of spiglet syntaxtree node.
SpigletTranslator - Class in piglet.translate
Translates a Piglet AST to a Spiglet AST.
SpigletTranslator() - Constructor for class piglet.translate.SpigletTranslator
Creates a translator visitor.
SpigletTreeCreator - Class in spiglet.util
A utility class to quickly create instances of a Spiglet subtree.
SpigletTreeCreator() - Constructor for class spiglet.util.SpigletTreeCreator
 
SpilledArg() - Method in class kanga.parser.KangaParser
 
SPILLEDARG - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
spilledArg - Variable in class kanga.syntaxtree.ALoadStmt
 
spilledArg - Variable in class kanga.syntaxtree.AStoreStmt
 
SpilledArg - Class in kanga.syntaxtree
Grammar production:
SpilledArg(NodeToken, IntegerLiteral) - Constructor for class kanga.syntaxtree.SpilledArg
 
SpilledArg(IntegerLiteral) - Constructor for class kanga.syntaxtree.SpilledArg
 
spillReg(KangaReg) - Method in class spiglet.translate.KangaContext
Injects Kanga code that pushes the value stored in the given register on to the stack.
stack - Variable in class kanga.translate.MContext
The number of stack slots needed by this procedure context.
startAtNextToken() - Method in class kanga.visitor.TreeDumper
Starts the tree dumper on the line containing the next token visited.
startAtNextToken() - Method in class minijava.visitor.TreeDumper
Starts the tree dumper on the line containing the next token visited.
startAtNextToken() - Method in class piglet.visitor.TreeDumper
Starts the tree dumper on the line containing the next token visited.
startAtNextToken() - Method in class spiglet.visitor.TreeDumper
Starts the tree dumper on the line containing the next token visited.
Statement() - Method in class minijava.parser.MJParser
 
statement - Variable in class minijava.syntaxtree.IfStatement
 
Statement - Class in minijava.syntaxtree
Grammar production:
Statement(NodeChoice) - Constructor for class minijava.syntaxtree.Statement
 
statement - Variable in class minijava.syntaxtree.WhileStatement
 
statement1 - Variable in class minijava.syntaxtree.IfStatement
 
STATIC - Static variable in interface minijava.parser.MJParserConstants
RegularExpression Id.
staticFlag - Static variable in class kanga.parser.JavaCharStream
Whether parser is static.
staticFlag - Static variable in class minijava.parser.JavaCharStream
Whether parser is static.
staticFlag - Static variable in class piglet.parser.JavaCharStream
Whether parser is static.
staticFlag - Static variable in class spiglet.parser.JavaCharStream
Whether parser is static.
Stmt() - Method in class kanga.parser.KangaParser
 
Stmt - Class in kanga.syntaxtree
Grammar production:
Stmt(NodeChoice) - Constructor for class kanga.syntaxtree.Stmt
 
Stmt() - Method in class piglet.parser.PigletParser
 
Stmt - Class in piglet.syntaxtree
Grammar production:
Stmt(NodeChoice) - Constructor for class piglet.syntaxtree.Stmt
 
Stmt - Class in simple.tree
 
Stmt(Expr) - Constructor for class simple.tree.Stmt
 
Stmt() - Method in class spiglet.parser.SpigletParser
 
Stmt - Class in spiglet.syntaxtree
Grammar production:
Stmt(NodeChoice) - Constructor for class spiglet.syntaxtree.Stmt
 
StmtExp() - Method in class piglet.parser.PigletParser
 
stmtExp - Variable in class piglet.syntaxtree.Procedure
 
StmtExp - Class in piglet.syntaxtree
Grammar production:
StmtExp(NodeToken, StmtList, NodeToken, Exp, NodeToken) - Constructor for class piglet.syntaxtree.StmtExp
 
StmtExp(StmtList, Exp) - Constructor for class piglet.syntaxtree.StmtExp
 
StmtExp() - Method in class spiglet.parser.SpigletParser
 
stmtExp - Variable in class spiglet.syntaxtree.Procedure
 
StmtExp - Class in spiglet.syntaxtree
Grammar production:
StmtExp(NodeToken, StmtList, NodeToken, SimpleExp, NodeToken) - Constructor for class spiglet.syntaxtree.StmtExp
 
StmtExp(StmtList, SimpleExp) - Constructor for class spiglet.syntaxtree.StmtExp
 
StmtList() - Method in class kanga.parser.KangaParser
 
stmtList - Variable in class kanga.syntaxtree.Goal
 
stmtList - Variable in class kanga.syntaxtree.Procedure
 
StmtList - Class in kanga.syntaxtree
Grammar production:
StmtList(NodeListOptional) - Constructor for class kanga.syntaxtree.StmtList
 
StmtList() - Method in class piglet.parser.PigletParser
 
stmtList - Variable in class piglet.syntaxtree.Goal
 
stmtList - Variable in class piglet.syntaxtree.StmtExp
 
StmtList - Class in piglet.syntaxtree
Grammar production:
StmtList(NodeListOptional) - Constructor for class piglet.syntaxtree.StmtList
 
StmtList() - Method in class spiglet.parser.SpigletParser
 
stmtList - Variable in class spiglet.syntaxtree.Goal
 
stmtList - Variable in class spiglet.syntaxtree.StmtExp
 
StmtList - Class in spiglet.syntaxtree
Grammar production:
StmtList(NodeListOptional) - Constructor for class spiglet.syntaxtree.StmtList
 
STRING - Static variable in interface minijava.parser.MJParserConstants
RegularExpression Id.
successors - Variable in class spiglet.translate.graph.Node
The set of nodes that edges coming out of this node points to.
SwitchTo(int) - Method in class kanga.parser.KangaParserTokenManager
Switch to specified lex state.
SwitchTo(int) - Method in class minijava.parser.MJParserTokenManager
Switch to specified lex state.
SwitchTo(int) - Method in class piglet.parser.PigletParserTokenManager
Switch to specified lex state.
SwitchTo(int) - Method in class spiglet.parser.SpigletParserTokenManager
Switch to specified lex state.
Symbol - Class in minijava.symtable
This class represents a symbol.
symbol(String) - Static method in class minijava.symtable.Symbol
 
SymbolTable<T extends Binding> - Class in minijava.symtable
A symbol table binds Symbol objects to Bindings.
SymbolTable() - Constructor for class minijava.symtable.SymbolTable
Creates a symbol table on its own scope (i.e., no parent superscope).
SymbolTable(SymbolTable<T>) - Constructor for class minijava.symtable.SymbolTable
Creates a symbol table with the supplied argument as its parent super scope.
SymbolTableBuilder - Class in minijava.symtable
This class defines a visitor that traverses a MiniJava program's syntax tree and generates a SymbolTable that maps symbolic identifiers to Types at the top level (that is, class types).
SymbolTableBuilder() - Constructor for class minijava.symtable.SymbolTableBuilder
 

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