public class Assembler extends Object
BytecodeEmitter
methods.Constructor and Description |
---|
Assembler() |
Modifier and Type | Method and Description |
---|---|
Bytecode |
compile(BufferedReader reader)
Convenience method of compiling the
BytecodeEmitter from parseInput(BufferedReader) |
static void |
main(String[] args)
The main entry point into the
Assembler |
BytecodeEmitter |
parseFile(String filename)
Parses the assembler file
|
BytecodeEmitter |
parseInput(BufferedReader reader)
Parses the input assembly.
|
public static final void main(String[] args) throws Exception
Assembler
args
- Exception
public BytecodeEmitter parseFile(String filename) throws Exception
filename
- outputfile
- Exception
public BytecodeEmitter parseInput(BufferedReader reader) throws Exception
reader
- BytecodeEmitter
Exception
public Bytecode compile(BufferedReader reader) throws Exception
BytecodeEmitter
from parseInput(BufferedReader)
Copyright © 2010–2015. All rights reserved.