public final class InstructionSequenceBuilder extends Parser.AbstractSyntaxHandler
| Modifier and Type | Method and Description |
|---|---|
InstructionSequence |
getInstructionSequence()
Returns the instruction sequence that has been build from the syntactic elements.
|
static InstructionSequence |
parse(CharSequence text)
Parses the given text into an instruction sequence representing a Type 4 function
that can be executed.
|
static int |
parseInt(String token)
Parses a value of type "int".
|
static float |
parseReal(String token)
Parses a value of type "real".
|
void |
token(CharSequence text)
Called when a token is encountered.
|
comment, newLine, whitespacepublic InstructionSequence getInstructionSequence()
public static InstructionSequence parse(CharSequence text)
text - the Type 4 function textpublic void token(CharSequence text)
text - the token textpublic static int parseInt(String token)
token - the token to be parsedpublic static float parseReal(String token)
token - the token to be parsedCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.