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

P

P2S - Class in <Unnamed>
This class is an entry point to the piglet-to-spiglet translator functionality testing unit.
P2S() - Constructor for class P2S
 
P2S - Class in piglet.translate
Entry point to the piglet package's unit testing.
P2S() - Constructor for class piglet.translate.P2S
 
ParenFact - Class in simple.tree
 
ParenFact(Expr) - Constructor for class simple.tree.ParenFact
 
Parse - Class in <Unnamed>
This class is an entry point to the LL(1) parser in the simple package.
Parse() - Constructor for class Parse
 
parse() - Method in class simple.parser.SimpleParser
Parses the source string, returning a parse tree rooted with a Stmt node.
ParseException - Exception in kanga.parser
This exception is thrown when parse errors are encountered.
ParseException(Token, int[][], String[]) - Constructor for exception kanga.parser.ParseException
This constructor is used by the method "generateParseException" in the generated parser.
ParseException() - Constructor for exception kanga.parser.ParseException
The following constructors are for use by you for whatever purpose you can think of.
ParseException(String) - Constructor for exception kanga.parser.ParseException
Constructor with message.
ParseException - Exception in minijava.parser
This exception is thrown when parse errors are encountered.
ParseException(Token, int[][], String[]) - Constructor for exception minijava.parser.ParseException
This constructor is used by the method "generateParseException" in the generated parser.
ParseException() - Constructor for exception minijava.parser.ParseException
The following constructors are for use by you for whatever purpose you can think of.
ParseException(String) - Constructor for exception minijava.parser.ParseException
Constructor with message.
ParseException - Exception in piglet.parser
This exception is thrown when parse errors are encountered.
ParseException(Token, int[][], String[]) - Constructor for exception piglet.parser.ParseException
This constructor is used by the method "generateParseException" in the generated parser.
ParseException() - Constructor for exception piglet.parser.ParseException
The following constructors are for use by you for whatever purpose you can think of.
ParseException(String) - Constructor for exception piglet.parser.ParseException
Constructor with message.
ParseException - Exception in simple.parser
 
ParseException(String) - Constructor for exception simple.parser.ParseException
 
ParseException - Exception in spiglet.parser
This exception is thrown when parse errors are encountered.
ParseException(Token, int[][], String[]) - Constructor for exception spiglet.parser.ParseException
This constructor is used by the method "generateParseException" in the generated parser.
ParseException() - Constructor for exception spiglet.parser.ParseException
The following constructors are for use by you for whatever purpose you can think of.
ParseException(String) - Constructor for exception spiglet.parser.ParseException
Constructor with message.
ParseNode - Class in simple.tree
 
ParseNode() - Constructor for class simple.tree.ParseNode
 
PASSARG - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
PassArgStmt() - Method in class kanga.parser.KangaParser
 
PassArgStmt - Class in kanga.syntaxtree
Grammar production:
PassArgStmt(NodeToken, IntegerLiteral, Reg) - Constructor for class kanga.syntaxtree.PassArgStmt
 
PassArgStmt(IntegerLiteral, Reg) - Constructor for class kanga.syntaxtree.PassArgStmt
 
piglet.meta - package piglet.meta
 
piglet.parser - package piglet.parser
 
piglet.syntaxtree - package piglet.syntaxtree
 
piglet.translate - package piglet.translate
 
piglet.util - package piglet.util
 
piglet.visitor - package piglet.visitor
 
PigletContext - Class in minijava.translate
A wrapper class that packages a logical context in a given translation step.
PigletContext(SymbolTable<PigletTemp>, Node) - Constructor for class minijava.translate.PigletContext
 
PigletContext() - Constructor for class minijava.translate.PigletContext
Creates a helper context, where the node reference is a StmtList node.
PigletFormatter - Class in piglet.visitor
A pretty printer visitor designed to be used together with TreeDumper to generate a formatted string that is the Piglet code.
PigletFormatter() - Constructor for class piglet.visitor.PigletFormatter
 
PigletLabel - Class in piglet.meta
This class represents a Label that can be used in creating a Label node in a piglet syntaxtree.
PigletParser - Class in piglet.parser
 
PigletParser(InputStream) - Constructor for class piglet.parser.PigletParser
Constructor with InputStream.
PigletParser(InputStream, String) - Constructor for class piglet.parser.PigletParser
Constructor with InputStream and supplied encoding
PigletParser(Reader) - Constructor for class piglet.parser.PigletParser
Constructor.
PigletParser(PigletParserTokenManager) - Constructor for class piglet.parser.PigletParser
Constructor with generated Token Manager.
PigletParserConstants - Interface in piglet.parser
Token literal values and constants.
PigletParserTokenManager - Class in piglet.parser
Token Manager.
PigletParserTokenManager(JavaCharStream) - Constructor for class piglet.parser.PigletParserTokenManager
Constructor.
PigletParserTokenManager(JavaCharStream, int) - Constructor for class piglet.parser.PigletParserTokenManager
Constructor.
PigletResult - Class in minijava.translate
A wrapper class that packages the objects returned by a visit method of the translator.
PigletResult(PigletTemp, Node) - Constructor for class minijava.translate.PigletResult
 
PigletResult(Node) - Constructor for class minijava.translate.PigletResult
 
PigletTemp - Class in piglet.meta
This class represents a Temp object that can be used in the creation of piglet syntaxtree node.
PigletTranslator - Class in minijava.translate
Translates a MiniJava AST to a Piglet AST.
PigletTranslator() - Constructor for class minijava.translate.PigletTranslator
Creates a translator visitor.
PigletTreeCreator - Class in piglet.util
A utility class to quickly create a Piglet subtree.
PigletTreeCreator() - Constructor for class piglet.util.PigletTreeCreator
 
PLUS - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
PLUS - Static variable in interface minijava.parser.MJParserConstants
RegularExpression Id.
PLUS - Static variable in interface piglet.parser.PigletParserConstants
RegularExpression Id.
PLUS - Static variable in interface spiglet.parser.SpigletParserConstants
RegularExpression Id.
PlusExpression() - Method in class minijava.parser.MJParser
 
PlusExpression - Class in minijava.syntaxtree
Grammar production:
PlusExpression(PrimaryExpression, NodeToken, PrimaryExpression) - Constructor for class minijava.syntaxtree.PlusExpression
 
PlusExpression(PrimaryExpression, PrimaryExpression) - Constructor for class minijava.syntaxtree.PlusExpression
 
postfixPrint() - Method in class simple.visitor.PostfixPrinter
Traverses the tree to build the postfix string and returns it.
PostfixPrinter - Class in simple.visitor
This class implements the Visitor interface that is able to traverse the parse tree of an expression.
PostfixPrinter(Stmt) - Constructor for class simple.visitor.PostfixPrinter
Creates a printer object, passing a Stmt node that represents the root of the parse tree to be traversed.
predecessors - Variable in class spiglet.translate.graph.Node
The set of all nodes that edges pointing to this node comes from.
present() - Method in class kanga.syntaxtree.NodeListOptional
 
present() - Method in class kanga.syntaxtree.NodeOptional
 
present() - Method in class minijava.syntaxtree.NodeListOptional
 
present() - Method in class minijava.syntaxtree.NodeOptional
 
present() - Method in class piglet.syntaxtree.NodeListOptional
 
present() - Method in class piglet.syntaxtree.NodeOptional
 
present() - Method in class spiglet.syntaxtree.NodeListOptional
 
present() - Method in class spiglet.syntaxtree.NodeOptional
 
prevCharIsCR - Variable in class kanga.parser.JavaCharStream
 
prevCharIsCR - Variable in class minijava.parser.JavaCharStream
 
prevCharIsCR - Variable in class piglet.parser.JavaCharStream
 
prevCharIsCR - Variable in class spiglet.parser.JavaCharStream
 
prevCharIsLF - Variable in class kanga.parser.JavaCharStream
 
prevCharIsLF - Variable in class minijava.parser.JavaCharStream
 
prevCharIsLF - Variable in class piglet.parser.JavaCharStream
 
prevCharIsLF - Variable in class spiglet.parser.JavaCharStream
 
PrimaryExpression() - Method in class minijava.parser.MJParser
 
primaryExpression - Variable in class minijava.syntaxtree.AndExpression
 
primaryExpression - Variable in class minijava.syntaxtree.ArrayLength
 
primaryExpression - Variable in class minijava.syntaxtree.ArrayLookup
 
primaryExpression - Variable in class minijava.syntaxtree.CompareExpression
 
primaryExpression - Variable in class minijava.syntaxtree.MessageSend
 
primaryExpression - Variable in class minijava.syntaxtree.MinusExpression
 
primaryExpression - Variable in class minijava.syntaxtree.PlusExpression
 
PrimaryExpression - Class in minijava.syntaxtree
Grammar production:
PrimaryExpression(NodeChoice) - Constructor for class minijava.syntaxtree.PrimaryExpression
 
primaryExpression - Variable in class minijava.syntaxtree.TimesExpression
 
primaryExpression1 - Variable in class minijava.syntaxtree.AndExpression
 
primaryExpression1 - Variable in class minijava.syntaxtree.ArrayLookup
 
primaryExpression1 - Variable in class minijava.syntaxtree.CompareExpression
 
primaryExpression1 - Variable in class minijava.syntaxtree.MinusExpression
 
primaryExpression1 - Variable in class minijava.syntaxtree.PlusExpression
 
primaryExpression1 - Variable in class minijava.syntaxtree.TimesExpression
 
PRINT - Static variable in interface kanga.parser.KangaParserConstants
RegularExpression Id.
PRINT - Static variable in interface minijava.parser.MJParserConstants
RegularExpression Id.
PRINT - Static variable in interface piglet.parser.PigletParserConstants
RegularExpression Id.
PRINT - Static variable in interface spiglet.parser.SpigletParserConstants
RegularExpression Id.
printSpecials(boolean) - Method in class kanga.visitor.TreeDumper
Allows you to specify whether or not to print special tokens.
printSpecials(boolean) - Method in class minijava.visitor.TreeDumper
Allows you to specify whether or not to print special tokens.
printSpecials(boolean) - Method in class piglet.visitor.TreeDumper
Allows you to specify whether or not to print special tokens.
printSpecials(boolean) - Method in class spiglet.visitor.TreeDumper
Allows you to specify whether or not to print special tokens.
PrintStatement() - Method in class minijava.parser.MJParser
 
PrintStatement - Class in minijava.syntaxtree
Grammar production:
PrintStatement(NodeToken, NodeToken, Expression, NodeToken, NodeToken) - Constructor for class minijava.syntaxtree.PrintStatement
 
PrintStatement(Expression) - Constructor for class minijava.syntaxtree.PrintStatement
 
PrintStmt() - Method in class kanga.parser.KangaParser
 
PrintStmt - Class in kanga.syntaxtree
Grammar production:
PrintStmt(NodeToken, SimpleExp) - Constructor for class kanga.syntaxtree.PrintStmt
 
PrintStmt(SimpleExp) - Constructor for class kanga.syntaxtree.PrintStmt
 
PrintStmt() - Method in class piglet.parser.PigletParser
 
PrintStmt - Class in piglet.syntaxtree
Grammar production:
PrintStmt(NodeToken, Exp) - Constructor for class piglet.syntaxtree.PrintStmt
 
PrintStmt(Exp) - Constructor for class piglet.syntaxtree.PrintStmt
 
PrintStmt() - Method in class spiglet.parser.SpigletParser
 
PrintStmt - Class in spiglet.syntaxtree
Grammar production:
PrintStmt(NodeToken, SimpleExp) - Constructor for class spiglet.syntaxtree.PrintStmt
 
PrintStmt(SimpleExp) - Constructor for class spiglet.syntaxtree.PrintStmt
 
Procedure() - Method in class kanga.parser.KangaParser
 
Procedure - Class in kanga.syntaxtree
Grammar production:
Procedure(Label, NodeToken, IntegerLiteral, NodeToken, NodeToken, IntegerLiteral, NodeToken, NodeToken, IntegerLiteral, NodeToken, StmtList, NodeToken) - Constructor for class kanga.syntaxtree.Procedure
 
Procedure(Label, IntegerLiteral, IntegerLiteral, IntegerLiteral, StmtList) - Constructor for class kanga.syntaxtree.Procedure
 
Procedure() - Method in class piglet.parser.PigletParser
 
Procedure - Class in piglet.syntaxtree
Grammar production:
Procedure(Label, NodeToken, IntegerLiteral, NodeToken, StmtExp) - Constructor for class piglet.syntaxtree.Procedure
 
Procedure(Label, IntegerLiteral, StmtExp) - Constructor for class piglet.syntaxtree.Procedure
 
Procedure() - Method in class spiglet.parser.SpigletParser
 
Procedure - Class in spiglet.syntaxtree
Grammar production:
Procedure(Label, NodeToken, IntegerLiteral, NodeToken, StmtExp) - Constructor for class spiglet.syntaxtree.Procedure
 
Procedure(Label, IntegerLiteral, StmtExp) - Constructor for class spiglet.syntaxtree.Procedure
 
processAsReg(KangaReg, KangaContext) - Method in class spiglet.translate.KangaResult
Processes this result's simple exp, if it is a Reg, return a Reg object that corresponds to it, otherwise inject a MOVE statement to a scratch register (as defined in KangaTranslator), then returns the Reg object.
processAsTemp(SpigletContext) - Method in class piglet.translate.SpigletResult
Returns a Temp object that is equivalent to the evaluation of the wrapped expression result.
processList(NodeListInterface) - Method in class kanga.visitor.KangaFormatter
 
processList(NodeListInterface) - Method in class kanga.visitor.TreeFormatter
Accepts a NodeListInterface object and performs an optional format command between each node in the list (but not after the last node).
processList(NodeListInterface, FormatCommand) - Method in class kanga.visitor.TreeFormatter
 
processList(NodeListInterface) - Method in class minijava.visitor.TreeFormatter
Accepts a NodeListInterface object and performs an optional format command between each node in the list (but not after the last node).
processList(NodeListInterface, FormatCommand) - Method in class minijava.visitor.TreeFormatter
 
processList(NodeListInterface) - Method in class piglet.visitor.PigletFormatter
 
processList(NodeListInterface) - Method in class piglet.visitor.TreeFormatter
Accepts a NodeListInterface object and performs an optional format command between each node in the list (but not after the last node).
processList(NodeListInterface, FormatCommand) - Method in class piglet.visitor.TreeFormatter
 
processList(NodeListInterface) - Method in class spiglet.visitor.SpigletFormatter
 
processList(NodeListInterface) - Method in class spiglet.visitor.TreeFormatter
Accepts a NodeListInterface object and performs an optional format command between each node in the list (but not after the last node).
processList(NodeListInterface, FormatCommand) - Method in class spiglet.visitor.TreeFormatter
 
PUBLIC - Static variable in interface minijava.parser.MJParserConstants
RegularExpression Id.

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