public interface ParsingContext
Modifier and Type | Interface and Description |
---|---|
static class |
ParsingContext.Location |
Modifier and Type | Method and Description |
---|---|
ParsingContext |
createSubContext()
clone this context
|
void |
generateCode(ParsingContext.Location[] loc,
Instruction... args)
generate instruction code with argument
|
void |
generateCode(ParsingContext.Location loc,
Instruction instr) |
void |
generateCodeAll(ParsingContext parsingContext)
Add code to this context
|
int |
getAddress()
return the current code address
|
Instruction |
getLast() |
ProgramBuilder |
getProgramBuilder()
get the code generated in this context
|
void |
staticSymbol(String name,
Object object) |
void generateCode(ParsingContext.Location[] loc, Instruction... args)
instr
- Instructionarg
- Objectvoid generateCode(ParsingContext.Location loc, Instruction instr)
void generateCodeAll(ParsingContext parsingContext)
code
- Object[]int getAddress()
Instruction getLast()
@Nullable ProgramBuilder getProgramBuilder()
ParsingContext createSubContext()
Copyright © 2018 SPF4J. All rights reserved.