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

A

A(T...) - Static method in class cs132.util.LangUtil
Returns the given list of values as an array.
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VAssign
 
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VAssign
 
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VAssign
 
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VAssign
 
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VBranch
 
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VBranch
 
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VBranch
 
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VBranch
 
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VBuiltIn
 
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VBuiltIn
 
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VBuiltIn
 
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VBuiltIn
 
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VCall
 
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VCall
 
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VCall
 
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VCall
 
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VGoto
 
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VGoto
 
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VGoto
 
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VGoto
 
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VInstr
Relay for VInstr.Visitor
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VInstr
Relay for VInstr.VisitorR
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VInstr
Relay for VInstr.VisitorP
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VInstr
Relay for VInstr.VisitorPR
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VMemRead
 
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VMemRead
 
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VMemRead
 
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VMemRead
 
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VMemWrite
 
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VMemWrite
 
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VMemWrite
 
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VMemWrite
 
accept(VInstr.Visitor<E>) - Method in class cs132.vapor.ast.VReturn
 
accept(VInstr.VisitorR<R, E>) - Method in class cs132.vapor.ast.VReturn
 
accept(P, VInstr.VisitorP<P, E>) - Method in class cs132.vapor.ast.VReturn
 
accept(P, VInstr.VisitorPR<P, R, E>) - Method in class cs132.vapor.ast.VReturn
 
Add - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
additional - Variable in class cs132.util.Problem
Any number of additional locations and messages.
addr - Variable in class cs132.vapor.ast.VCall
The address of the function being called.
allowLocals - Variable in class cs132.vapor.ast.VaporProgram
Whether local variables were allowed to be used in this program.
allowStack - Variable in class cs132.vapor.ast.VaporProgram
Whether the program is allowed to store values on the function call stack.
And - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
append(CharSequence) - Method in class cs132.util.IndentPrinter
 
append(CharSequence, int, int) - Method in class cs132.util.IndentPrinter
 
append(char) - Method in class cs132.util.IndentPrinter
 
args - Variable in class cs132.vapor.ast.VBuiltIn
The arguments to the operation
args - Variable in class cs132.vapor.ast.VCall
The list of arguments to pass to the function.
assertBadType(Object) - Static method in class cs132.util.LangUtil
 
assertMessage(String, Throwable) - Static method in class cs132.util.LangUtil
 

B

badType(Object) - Static method in class cs132.util.LangUtil
Returns an AssertionError with a helpful message about what the type of the given object is.
badType(Enum<?>) - Static method in class cs132.util.LangUtil
 
base - Variable in class cs132.vapor.ast.VMemRef.Global
The base address of the memory location.
body - Variable in class cs132.vapor.ast.VFunction
The function body is just a list of instructions.
byteOffset - Variable in class cs132.vapor.ast.VMemRef.Global
The offset part of the memory location.

C

cast(T) - Static method in class cs132.util.LangUtil
 
close() - Method in class cs132.util.IndentPrinter
Closes the underlying stream.
code - Variable in exception cs132.util.CommandLineLauncher.Exit
 
column - Variable in class cs132.util.SourcePos
 
CommandLineLauncher - Class in cs132.util
A helper for writing command-line entrypoints.
CommandLineLauncher.Exit - Exception in cs132.util
 
CommandLineLauncher.Exit(int) - Constructor for exception cs132.util.CommandLineLauncher.Exit
 
CommandLineLauncher.Exit() - Constructor for exception cs132.util.CommandLineLauncher.Exit
 
CommandLineLauncher.RawOutput - Class in cs132.util
 
CommandLineLauncher.RawOutput() - Constructor for class cs132.util.CommandLineLauncher.RawOutput
 
CommandLineLauncher.TextOutput - Class in cs132.util
 
CommandLineLauncher.TextOutput() - Constructor for class cs132.util.CommandLineLauncher.TextOutput
 
cs132.util - package cs132.util
 
cs132.vapor.ast - package cs132.vapor.ast
 
cs132.vapor.parser - package cs132.vapor.parser
 
currentToken - Variable in exception cs132.vapor.parser.ParseException
This is the last token that has been consumed successfully.

D

dataSegments - Variable in class cs132.vapor.ast.VaporProgram
All the data segments in this program.
DebugPrint - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
decode(Charset, byte[]) - Static method in class cs132.util.StringUtil
 
decode(Charset, byte[], int, int) - Static method in class cs132.util.StringUtil
 
decode(CharsetDecoder, byte[]) - Static method in class cs132.util.StringUtil
 
decode(CharsetDecoder, byte[], int, int) - Static method in class cs132.util.StringUtil
 
dedent(int) - Method in class cs132.util.IndentPrinter
Decrease the indentation level by 'numIndents' indentations.
dedent() - Method in class cs132.util.IndentPrinter
Decrease the indentation level by one.
DefaultIndent - Static variable in class cs132.util.IndentPrinter
Two spaces.
dest - Variable in class cs132.vapor.ast.VAssign
The location being stored to.
dest - Variable in class cs132.vapor.ast.VBuiltIn
The variable/register in which to store the result of the operation.
dest - Variable in class cs132.vapor.ast.VCall
The variable used to store the return value of the function.
dest - Variable in class cs132.vapor.ast.VMemRead
The variable/register to store the value into.
dest - Variable in class cs132.vapor.ast.VMemWrite
The memory location being written to.
disable_tracing() - Method in class cs132.vapor.parser.VaporParser
Disable tracing.
DivS - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 

E

enable_tracing() - Method in class cs132.vapor.parser.VaporParser
Enable tracing.
eol - Variable in exception cs132.vapor.parser.ParseException
The end of line string for this machine.
eq(Object, Object) - Static method in class cs132.util.LangUtil
Similar to "a.equals(b)" except it works when either value is null.
Eq - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
Error - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
escape(String) - Static method in class cs132.vapor.ast.VLitStr
 
exit(int) - Static method in class cs132.util.CommandLineLauncher.RawOutput
Returns a new CommandLineLauncher.Exit object.
exit(int) - Static method in class cs132.util.CommandLineLauncher.TextOutput
Returns a new CommandLineLauncher.Exit object.
expectedTokenSequences - Variable in exception cs132.vapor.parser.ParseException
Each entry in this array is an array of integers.

F

flush() - Method in class cs132.util.IndentPrinter
Flushes the underlying stream.
function - Variable in class cs132.vapor.ast.VCodeLabel
 
functions - Variable in class cs132.vapor.ast.VaporProgram
All the functions in this program.

G

generateParseException() - Method in class cs132.vapor.parser.VaporParser
Generate ParseException.
getMessage() - Method in exception cs132.util.ProblemException
 
getNextToken() - Method in class cs132.vapor.parser.VaporParser
Get the next Token.
getTarget() - Method in class cs132.vapor.ast.VLabelRef
 
getToken(int) - Method in class cs132.vapor.parser.VaporParser
Get the specific Token.
getUTF8(String) - Static method in class cs132.util.StringUtil
Return the UTF-8-encoded equivalent of the given string.

H

HeapAlloc - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
HeapAllocZ - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
Hex - Static variable in class cs132.util.StringUtil
 
hex(StringBuilder, char) - Static method in class cs132.util.StringUtil
Append the hex value of the given character.
hex2(StringBuilder, byte) - Static method in class cs132.util.StringUtil
Append the 2-digit hex value of the given character's low byte.
hex4(StringBuilder, char) - Static method in class cs132.util.StringUtil
Append the 4-digit hex value of the given character.

I

ident - Variable in class cs132.vapor.ast.VLabelRef
The text of the label reference.
ident - Variable in class cs132.vapor.ast.VTarget
The name of the thing (function name, data segement name, code label name, etc).
ident - Variable in class cs132.vapor.ast.VVarRef.Local
The name of the register.
ident - Variable in class cs132.vapor.ast.VVarRef.Register
The name of the register.
in - Variable in class cs132.vapor.ast.VFunction.Stack
The number of words in the "in" part of the stack.
indent(int) - Method in class cs132.util.IndentPrinter
Increase the indentation level by 'numIndents' indentations.
indent() - Method in class cs132.util.IndentPrinter
Increase the indentation level by one.
IndentPrinter - Class in cs132.util
Printer that manages indentation.
IndentPrinter(Writer, String, String, boolean) - Constructor for class cs132.util.IndentPrinter
 
IndentPrinter(Writer, String, String) - Constructor for class cs132.util.IndentPrinter
Equivalent to: IndentPrinter(out, indent, prefix, true).
IndentPrinter(Writer, String) - Constructor for class cs132.util.IndentPrinter
Equivalent to: IndentPrinter(out, indent, "").
IndentPrinter(Writer) - Constructor for class cs132.util.IndentPrinter
Equivalent to: IndentPrinter(out, IndentPrinter.DefaultIndent).
index - Variable in class cs132.vapor.ast.VDataSegment
All functions in a single program are assigned an index contiguously, starting from zero.
index - Variable in class cs132.vapor.ast.VFunction
All functions in a single program are assigned an index contiguously, starting from zero.
index - Variable in class cs132.vapor.ast.VMemRef.Stack
The index into the array this stack memory reference is referring to.
index - Variable in class cs132.vapor.ast.VVarRef.Local
The index of the register (in the VFunction.vars array)
index - Variable in class cs132.vapor.ast.VVarRef.Register
The index of the register (based on the array passed in to the parser)
initCause(T, Throwable) - Static method in class cs132.util.LangUtil
 
instrIndex - Variable in class cs132.vapor.ast.VCodeLabel
 
isError(VInstr) - Static method in class cs132.vapor.ast.VBuiltIn
 

J

jj_nt - Variable in class cs132.vapor.parser.VaporParser
Next token.
join(Iterable<? extends CharSequence>, String) - Static method in class cs132.util.StringUtil
Equivalent to: join(items, sep, "")
join(Iterable<? extends CharSequence>, String, String) - Static method in class cs132.util.StringUtil
Concatenate the strings in 'items', separated by the string in 'sep'.
jq(String) - Static method in class cs132.util.StringUtil
Return a Java string literal that is equivalent to the given string.
jq(StringBuilder, String) - Static method in class cs132.util.StringUtil
Equivalent to StringUtil.jq(String), except it appends the result to a StringBuilder instead of returning it as a string.
jqc(StringBuilder, String) - Static method in class cs132.util.StringUtil
Equivalent to StringUtil.jq(StringBuilder,String), except it doesn't include the leading and trailing quote characters.

L

label - Variable in class cs132.vapor.ast.VAddr.Label
 
labels - Variable in class cs132.vapor.ast.VFunction
The function's list of code labels.
LangUtil - Class in cs132.util
 
LangUtil() - Constructor for class cs132.util.LangUtil
 
Le - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
LeS - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
line - Variable in class cs132.util.SourcePos
 
local - Variable in class cs132.vapor.ast.VFunction.Stack
The number of words in the "local" part of the stack.
lookup(String) - Static method in class cs132.vapor.ast.VBuiltIn.Op
 
Lt - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
LtS - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 

M

message - Variable in class cs132.util.Problem.Ref
 
MulS - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
mutable - Variable in class cs132.vapor.ast.VDataSegment
Whether the data segment is mutable.

N

name - Variable in class cs132.vapor.ast.VBuiltIn.Op
The name of the operation.
Ne - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
NL - Static variable in class cs132.util.StringUtil
The platform-specific end-of-line marker (Usually "\n" on Unix and "\r\n" on Windows).
Node - Class in cs132.vapor.ast
The base class for AST nodes.
Node(SourcePos) - Constructor for class cs132.vapor.ast.Node
 
Noop - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
Not - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
numParams - Variable in class cs132.vapor.ast.VBuiltIn.Op
The number of parameters this operation takes.

O

op - Variable in class cs132.vapor.ast.VBuiltIn
The operation being performed.
Or - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
out - Variable in class cs132.vapor.ast.VFunction.Stack
The number of words in the "out" part of the stack.

P

params - Variable in class cs132.vapor.ast.VFunction
The function's parameter list.
ParseException - Exception in cs132.vapor.parser
This exception is thrown when parse errors are encountered.
ParseException(Token, int[][], String[]) - Constructor for exception cs132.vapor.parser.ParseException
This constructor is used by the method "generateParseException" in the generated parser.
ParseException() - Constructor for exception cs132.vapor.parser.ParseException
The following constructors are for use by you for whatever purpose you can think of.
ParseException(String) - Constructor for exception cs132.vapor.parser.ParseException
Constructor with message.
pex(SourcePos, String) - Static method in exception cs132.util.ProblemException
Convenience method that greates a Problem with the given position and message, then wraps it in an exception and returns it.
pex(SourcePos, String, SourcePos, String) - Static method in exception cs132.util.ProblemException
Convenience method that greates a Problem with the given positions and messages, then wraps it in an exception and returns it.
positive - Variable in class cs132.vapor.ast.VBranch
For if branches, positive is true.
primary - Variable in class cs132.util.Problem
The primary location and primary error message.
print(String) - Method in class cs132.util.IndentPrinter
 
print(char[]) - Method in class cs132.util.IndentPrinter
 
print(Object) - Method in class cs132.util.IndentPrinter
 
print(char) - Method in class cs132.util.IndentPrinter
 
print(int) - Method in class cs132.util.IndentPrinter
 
print(long) - Method in class cs132.util.IndentPrinter
 
print(double) - Method in class cs132.util.IndentPrinter
 
print(float) - Method in class cs132.util.IndentPrinter
 
print(boolean) - Method in class cs132.util.IndentPrinter
 
print(CharSequence) - Method in class cs132.util.IndentPrinter
 
PrintInt - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
PrintIntS - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
println(String) - Method in class cs132.util.IndentPrinter
 
println(char[]) - Method in class cs132.util.IndentPrinter
 
println(Object) - Method in class cs132.util.IndentPrinter
 
println(char) - Method in class cs132.util.IndentPrinter
 
println(int) - Method in class cs132.util.IndentPrinter
 
println(long) - Method in class cs132.util.IndentPrinter
 
println(double) - Method in class cs132.util.IndentPrinter
 
println(float) - Method in class cs132.util.IndentPrinter
 
println(boolean) - Method in class cs132.util.IndentPrinter
 
println(CharSequence) - Method in class cs132.util.IndentPrinter
 
println() - Method in class cs132.util.IndentPrinter
 
PrintString - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
Problem - Class in cs132.util
Used to describe a "problem", while referring to some kind of source code.
Problem(Problem.Ref, List<Problem.Ref>) - Constructor for class cs132.util.Problem
 
Problem(Problem.Ref) - Constructor for class cs132.util.Problem
 
Problem(SourcePos, String) - Constructor for class cs132.util.Problem
Convenience constructor that creates a Problem with just a primary reference.
Problem(SourcePos, String, SourcePos, String) - Constructor for class cs132.util.Problem
Convenience constructor that creates a Problem with a primary reference and one additional reference.
Problem.Ref - Class in cs132.util
A pairing of a SourcePos and a message.
Problem.Ref(SourcePos, String) - Constructor for class cs132.util.Problem.Ref
 
ProblemException - Exception in cs132.util
An exception that has a List of Problem objects.
ProblemException(Problem) - Constructor for exception cs132.util.ProblemException
 
ProblemException(Iterable<Problem>) - Constructor for exception cs132.util.ProblemException
 
problems - Variable in exception cs132.util.ProblemException
The list of problems.

R

readableChar(char) - Static method in class cs132.util.StringUtil
Human-readable representation of a character.
readableChar(StringBuilder, char) - Static method in class cs132.util.StringUtil
Equivalent to StringUtil.readableChar(char), except it appends the result to a StringBuilder instead of returning it as a string.
region - Variable in class cs132.vapor.ast.VMemRef.Stack
The region this stack memory reference is referring to.
registers - Variable in class cs132.vapor.ast.VaporProgram
The list of registers that were allowed to be used in this program.
ReInit(InputStream) - Method in class cs132.vapor.parser.VaporParser
Reinitialise.
ReInit(InputStream, String) - Method in class cs132.vapor.parser.VaporParser
Reinitialise.
ReInit(Reader) - Method in class cs132.vapor.parser.VaporParser
Reinitialise.
ReInit(VaporParserTokenManager) - Method in class cs132.vapor.parser.VaporParser
Reinitialise.
RemS - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
run(PrintStream, InputStream, PrintWriter, String[]) - Method in class cs132.util.CommandLineLauncher.RawOutput
 
run(CommandLineLauncher.RawOutput, String[]) - Static method in class cs132.util.CommandLineLauncher
 
run(CommandLineLauncher.TextOutput, String[], boolean, boolean) - Static method in class cs132.util.CommandLineLauncher
 
run(CommandLineLauncher.TextOutput, String[]) - Static method in class cs132.util.CommandLineLauncher
Equivalent to: run(launcher, args, true, true)
run(PrintWriter, InputStream, PrintWriter, String[]) - Method in class cs132.util.CommandLineLauncher.TextOutput
 
run(Reader, int, int, Iterable<VBuiltIn.Op>, boolean, String[], boolean) - Static method in class cs132.vapor.parser.VaporParser
Run the parser on the given input.

S

setTarget(T) - Method in class cs132.vapor.ast.VLabelRef
 
ShiftL - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
ShiftR - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
ShiftRA - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 
source - Variable in class cs132.vapor.ast.VAssign
The value being stored.
source - Variable in class cs132.vapor.ast.VMemRead
The memory location being read.
source - Variable in class cs132.vapor.ast.VMemWrite
The value being written.
sourcePos - Variable in class cs132.util.Problem.Ref
 
SourcePos - Class in cs132.util
 
SourcePos(int, int) - Constructor for class cs132.util.SourcePos
 
sourcePos - Variable in class cs132.vapor.ast.Node
The source position of the syntactic construct that this AST node represents.
stack - Variable in class cs132.vapor.ast.VFunction
The function's stack declaration.
StringUtil - Class in cs132.util
 
Sub - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 

T

target - Variable in class cs132.vapor.ast.VBranch
The code label that will be executed next if the branch is taken.
target - Variable in class cs132.vapor.ast.VGoto
The target of the jump.
todo() - Static method in class cs132.util.LangUtil
Returns: new RuntimeException("todo").
todo(String) - Static method in class cs132.util.LangUtil
Returns: new RuntimeException("todo: " + s).
token - Variable in class cs132.vapor.parser.VaporParser
Current token.
token_source - Variable in class cs132.vapor.parser.VaporParser
Generated Token Manager.
tokenImage - Variable in exception cs132.vapor.parser.ParseException
This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred.
toString() - Method in class cs132.util.Problem
 
toString(StringBuilder) - Method in class cs132.util.Problem
 
toString(StringBuilder) - Method in class cs132.util.SourcePos
 
toString() - Method in class cs132.util.SourcePos
 
toString() - Method in class cs132.vapor.ast.VAddr.Label
 
toString() - Method in class cs132.vapor.ast.VAddr.Var
 
toString() - Method in class cs132.vapor.ast.VLabelRef
 
toString() - Method in class cs132.vapor.ast.VLitInt
 
toString() - Method in class cs132.vapor.ast.VLitStr
 
toString() - Method in class cs132.vapor.ast.VVarRef.Local
 
toString() - Method in class cs132.vapor.ast.VVarRef.Register
 
toStringRelative(SourcePos) - Method in class cs132.util.SourcePos
Shows this location relative to another location.
toStringRelative(StringBuilder, SourcePos) - Method in class cs132.util.SourcePos
 

U

UTF8 - Static variable in class cs132.util.StringUtil
A convenience instance of the UTF-8 Charset object.

V

VAddr<T extends VTarget> - Class in cs132.vapor.ast
An address reference.
VAddr() - Constructor for class cs132.vapor.ast.VAddr
 
VAddr.Label<T extends VTarget> - Class in cs132.vapor.ast
 
VAddr.Label(VLabelRef<T>) - Constructor for class cs132.vapor.ast.VAddr.Label
 
VAddr.Var<T extends VTarget> - Class in cs132.vapor.ast
 
VAddr.Var(VVarRef) - Constructor for class cs132.vapor.ast.VAddr.Var
 
value - Variable in class cs132.vapor.ast.VBranch
The value being branched on.
value - Variable in class cs132.vapor.ast.VLitInt
 
value - Variable in class cs132.vapor.ast.VLitStr
 
value - Variable in class cs132.vapor.ast.VReturn
The value being returned.
valueOf(String) - Static method in enum cs132.vapor.ast.VMemRef.Stack.Region
Returns the enum constant of this type with the specified name.
values - Variable in class cs132.vapor.ast.VDataSegment
The data in the segment.
values() - Static method in enum cs132.vapor.ast.VMemRef.Stack.Region
Returns an array containing the constants of this enum type, in the order they are declared.
VaporParser - Class in cs132.vapor.parser
The JavaCC-generated parser.
VaporParser(InputStream) - Constructor for class cs132.vapor.parser.VaporParser
Constructor with InputStream.
VaporParser(InputStream, String) - Constructor for class cs132.vapor.parser.VaporParser
Constructor with InputStream and supplied encoding
VaporParser(Reader) - Constructor for class cs132.vapor.parser.VaporParser
Constructor.
VaporParser(VaporParserTokenManager) - Constructor for class cs132.vapor.parser.VaporParser
Constructor with generated Token Manager.
VaporProgram - Class in cs132.vapor.ast
Represents a full Vapor program.
VaporProgram(boolean, String[], boolean, VDataSegment[], VFunction[]) - Constructor for class cs132.vapor.ast.VaporProgram
 
var - Variable in class cs132.vapor.ast.VAddr.Var
 
vars - Variable in class cs132.vapor.ast.VFunction
The full list of local variables used in this function.
VAssign - Class in cs132.vapor.ast
An assignment instruction.
VAssign(SourcePos, VVarRef, VOperand) - Constructor for class cs132.vapor.ast.VAssign
 
VBranch - Class in cs132.vapor.ast
A branch instruction (if and if0).
VBranch(SourcePos, boolean, VOperand, VLabelRef<VCodeLabel>) - Constructor for class cs132.vapor.ast.VBranch
 
VBuiltIn - Class in cs132.vapor.ast
The invocation of a built-in operation (for primitive operations like add, sub, etc).
VBuiltIn(SourcePos, VBuiltIn.Op, VOperand[], VVarRef) - Constructor for class cs132.vapor.ast.VBuiltIn
 
VBuiltIn.Op - Class in cs132.vapor.ast
An built-in operation in Vapor.
VCall - Class in cs132.vapor.ast
Function call instruction.
VCall(SourcePos, VAddr<VFunction>, VOperand[], VVarRef.Local) - Constructor for class cs132.vapor.ast.VCall
 
VCodeLabel - Class in cs132.vapor.ast
A label definition in the body of a function.
VCodeLabel(SourcePos, String, VFunction, int) - Constructor for class cs132.vapor.ast.VCodeLabel
 
VDataSegment - Class in cs132.vapor.ast
A top-level data segment.
VDataSegment(SourcePos, String, int, boolean, VOperand.Static[]) - Constructor for class cs132.vapor.ast.VDataSegment
 
VFunction - Class in cs132.vapor.ast
A function definition.
VFunction(SourcePos, String, int, VVarRef.Local[], VFunction.Stack) - Constructor for class cs132.vapor.ast.VFunction
 
VFunction.Stack - Class in cs132.vapor.ast
The details of a function's stack space declaration.
VFunction.Stack(int, int, int) - Constructor for class cs132.vapor.ast.VFunction.Stack
 
VGoto - Class in cs132.vapor.ast
A jump instruction.
VGoto(SourcePos, VAddr<VCodeLabel>) - Constructor for class cs132.vapor.ast.VGoto
 
VInstr - Class in cs132.vapor.ast
The base class for all AST instruction nodes.
VInstr(SourcePos) - Constructor for class cs132.vapor.ast.VInstr
 
VInstr.Visitor<E extends Throwable> - Class in cs132.vapor.ast
Visitor for instruction nodes.
VInstr.Visitor() - Constructor for class cs132.vapor.ast.VInstr.Visitor
 
VInstr.VisitorP<P,E extends Throwable> - Class in cs132.vapor.ast
Visitor for instruction nodes, where each visitor function takes a parameter.
VInstr.VisitorP() - Constructor for class cs132.vapor.ast.VInstr.VisitorP
 
VInstr.VisitorPR<P,R,E extends Throwable> - Class in cs132.vapor.ast
Visitor for instruction nodes, where each visitor function takes a parameter and returns a value.
VInstr.VisitorPR() - Constructor for class cs132.vapor.ast.VInstr.VisitorPR
 
VInstr.VisitorR<R,E extends Throwable> - Class in cs132.vapor.ast
Visitor for instruction nodes, where each visitor function returns a value.
VInstr.VisitorR() - Constructor for class cs132.vapor.ast.VInstr.VisitorR
 
visit(VAssign) - Method in class cs132.vapor.ast.VInstr.Visitor
 
visit(VCall) - Method in class cs132.vapor.ast.VInstr.Visitor
 
visit(VBuiltIn) - Method in class cs132.vapor.ast.VInstr.Visitor
 
visit(VMemWrite) - Method in class cs132.vapor.ast.VInstr.Visitor
 
visit(VMemRead) - Method in class cs132.vapor.ast.VInstr.Visitor
 
visit(VBranch) - Method in class cs132.vapor.ast.VInstr.Visitor
 
visit(VGoto) - Method in class cs132.vapor.ast.VInstr.Visitor
 
visit(VReturn) - Method in class cs132.vapor.ast.VInstr.Visitor
 
visit(P, VAssign) - Method in class cs132.vapor.ast.VInstr.VisitorP
 
visit(P, VCall) - Method in class cs132.vapor.ast.VInstr.VisitorP
 
visit(P, VBuiltIn) - Method in class cs132.vapor.ast.VInstr.VisitorP
 
visit(P, VMemWrite) - Method in class cs132.vapor.ast.VInstr.VisitorP
 
visit(P, VMemRead) - Method in class cs132.vapor.ast.VInstr.VisitorP
 
visit(P, VBranch) - Method in class cs132.vapor.ast.VInstr.VisitorP
 
visit(P, VGoto) - Method in class cs132.vapor.ast.VInstr.VisitorP
 
visit(P, VReturn) - Method in class cs132.vapor.ast.VInstr.VisitorP
 
visit(P, VAssign) - Method in class cs132.vapor.ast.VInstr.VisitorPR
 
visit(P, VCall) - Method in class cs132.vapor.ast.VInstr.VisitorPR
 
visit(P, VBuiltIn) - Method in class cs132.vapor.ast.VInstr.VisitorPR
 
visit(P, VMemWrite) - Method in class cs132.vapor.ast.VInstr.VisitorPR
 
visit(P, VMemRead) - Method in class cs132.vapor.ast.VInstr.VisitorPR
 
visit(P, VBranch) - Method in class cs132.vapor.ast.VInstr.VisitorPR
 
visit(P, VGoto) - Method in class cs132.vapor.ast.VInstr.VisitorPR
 
visit(P, VReturn) - Method in class cs132.vapor.ast.VInstr.VisitorPR
 
visit(VAssign) - Method in class cs132.vapor.ast.VInstr.VisitorR
 
visit(VCall) - Method in class cs132.vapor.ast.VInstr.VisitorR
 
visit(VBuiltIn) - Method in class cs132.vapor.ast.VInstr.VisitorR
 
visit(VMemWrite) - Method in class cs132.vapor.ast.VInstr.VisitorR
 
visit(VMemRead) - Method in class cs132.vapor.ast.VInstr.VisitorR
 
visit(VBranch) - Method in class cs132.vapor.ast.VInstr.VisitorR
 
visit(VGoto) - Method in class cs132.vapor.ast.VInstr.VisitorR
 
visit(VReturn) - Method in class cs132.vapor.ast.VInstr.VisitorR
 
VLabelRef<T extends VTarget> - Class in cs132.vapor.ast
A label reference.
VLabelRef(SourcePos, String) - Constructor for class cs132.vapor.ast.VLabelRef
 
VLitInt - Class in cs132.vapor.ast
Integer literal.
VLitInt(SourcePos, int) - Constructor for class cs132.vapor.ast.VLitInt
 
VLitStr - Class in cs132.vapor.ast
String literal.
VLitStr(SourcePos, String) - Constructor for class cs132.vapor.ast.VLitStr
 
VMemRead - Class in cs132.vapor.ast
Memory read instructions.
VMemRead(SourcePos, VVarRef, VMemRef) - Constructor for class cs132.vapor.ast.VMemRead
 
VMemRef - Class in cs132.vapor.ast
A reference to a memory location.
VMemRef(SourcePos) - Constructor for class cs132.vapor.ast.VMemRef
 
VMemRef.Global - Class in cs132.vapor.ast
A reference to some global memory location (either a segment or the heap).
VMemRef.Global(SourcePos, VAddr<VDataSegment>, int) - Constructor for class cs132.vapor.ast.VMemRef.Global
 
VMemRef.Stack - Class in cs132.vapor.ast
A reference to some global memory location (either a segment or the heap).
VMemRef.Stack(SourcePos, VMemRef.Stack.Region, int) - Constructor for class cs132.vapor.ast.VMemRef.Stack
 
VMemRef.Stack.Region - Enum in cs132.vapor.ast
The three possible stack regions.
VMemWrite - Class in cs132.vapor.ast
Memory write instruction.
VMemWrite(SourcePos, VMemRef, VOperand) - Constructor for class cs132.vapor.ast.VMemWrite
 
VOperand - Class in cs132.vapor.ast
The base class for operand nodes.
VOperand(SourcePos) - Constructor for class cs132.vapor.ast.VOperand
 
VOperand.Static - Class in cs132.vapor.ast
"Static" values.
VOperand.Static(SourcePos) - Constructor for class cs132.vapor.ast.VOperand.Static
 
VReturn - Class in cs132.vapor.ast
Return instruction.
VReturn(SourcePos, VOperand) - Constructor for class cs132.vapor.ast.VReturn
 
VTarget - Class in cs132.vapor.ast
The base class for things that can appear as targets of a label reference (VLabelRef).
VTarget(SourcePos, String) - Constructor for class cs132.vapor.ast.VTarget
 
VVarRef - Class in cs132.vapor.ast
A reference to a function-local variable (VVarRef.Local) or global register (VVarRef.Register).
VVarRef.Local - Class in cs132.vapor.ast
A reference to a function-local variable.
VVarRef.Local(SourcePos, String, int) - Constructor for class cs132.vapor.ast.VVarRef.Local
 
VVarRef.Register - Class in cs132.vapor.ast
A reference to a global register.
VVarRef.Register(SourcePos, String, int) - Constructor for class cs132.vapor.ast.VVarRef.Register
 

W

write(char[]) - Method in class cs132.util.IndentPrinter
 
write(char[], int, int) - Method in class cs132.util.IndentPrinter
 
write(char) - Method in class cs132.util.IndentPrinter
 
write(String) - Method in class cs132.util.IndentPrinter
 
write(String, int, int) - Method in class cs132.util.IndentPrinter
 

X

Xor - Static variable in class cs132.vapor.ast.VBuiltIn.Op
 

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