public class CompilationState extends Object
impl
CompiledST
object.Constructor and Description |
---|
CompilationState(ErrorManager errMgr,
String name,
org.antlr.runtime.TokenStream tokens) |
Modifier and Type | Method and Description |
---|---|
int |
defineString(String s) |
void |
emit(org.antlr.runtime.tree.CommonTree opAST,
short opcode) |
void |
emit(short opcode) |
void |
emit1(org.antlr.runtime.tree.CommonTree opAST,
short opcode,
int arg) |
void |
emit1(org.antlr.runtime.tree.CommonTree opAST,
short opcode,
String s) |
void |
emit2(org.antlr.runtime.tree.CommonTree opAST,
short opcode,
int arg,
int arg2) |
void |
emit2(org.antlr.runtime.tree.CommonTree opAST,
short opcode,
String s,
int arg2) |
protected void |
ensureCapacity(int n) |
void |
func(org.antlr.runtime.Token templateToken,
org.antlr.runtime.tree.CommonTree id) |
void |
indent(org.antlr.runtime.tree.CommonTree indent) |
void |
insert(int addr,
short opcode,
String s) |
void |
refAttr(org.antlr.runtime.Token templateToken,
org.antlr.runtime.tree.CommonTree id) |
void |
setOption(org.antlr.runtime.tree.CommonTree id) |
void |
write(int addr,
short value) |
static void |
writeShort(byte[] memory,
int index,
short value)
Write value at index into a byte array highest to lowest byte,
left to right.
|
public CompilationState(ErrorManager errMgr, String name, org.antlr.runtime.TokenStream tokens)
public int defineString(String s)
public void refAttr(org.antlr.runtime.Token templateToken, org.antlr.runtime.tree.CommonTree id)
public void setOption(org.antlr.runtime.tree.CommonTree id)
public void func(org.antlr.runtime.Token templateToken, org.antlr.runtime.tree.CommonTree id)
public void emit(short opcode)
public void emit(org.antlr.runtime.tree.CommonTree opAST, short opcode)
public void emit1(org.antlr.runtime.tree.CommonTree opAST, short opcode, int arg)
public void emit2(org.antlr.runtime.tree.CommonTree opAST, short opcode, int arg, int arg2)
public void emit2(org.antlr.runtime.tree.CommonTree opAST, short opcode, String s, int arg2)
public void emit1(org.antlr.runtime.tree.CommonTree opAST, short opcode, String s)
public void insert(int addr, short opcode, String s)
public void write(int addr, short value)
protected void ensureCapacity(int n)
public void indent(org.antlr.runtime.tree.CommonTree indent)
public static void writeShort(byte[] memory, int index, short value)
Copyright © 2024. All rights reserved.