public class Syntax extends Object
What I need is a mechanism to declare:
| Constructor and Description |
|---|
Syntax(Environment environment)
Initialize syntax with the environment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute the phases as follows:
1.
|
void |
executeInternal()
Execute the phases as follows:
1.
|
static void |
main(String[] args)
Entry point
|
public Syntax(Environment environment)
environment - is the syntax environmentpublic void execute()
executeInternal() routine.public void executeInternal()
throws ParsingException,
AnalysisException,
OutputException
ParsingException - when the input file has issues.AnalysisException - when the input grammar can be parsed but has issues.OutputException - when the generation could not produce the output filepublic static void main(String[] args)
args - command line argumentsCopyright © 2017. All rights reserved.