public class GenerateOperatorArrays extends Object
ASTNodeFactory's HEADER_STRINGS, OPERATOR_STRINGS, OPERATORS
arrays from the operators.txt textfile descriptionConstructor and Description |
---|
GenerateOperatorArrays() |
Modifier and Type | Method and Description |
---|---|
static void |
generateOperatorTable(InputStream is,
HashMap operatorMap,
HashMap operatorTokenStartSet)
Generate operator table.
|
static void |
main(String[] args)
Utility for generating source codes for the
ASTNodeFactory's HEADER_STRINGS, OPERATOR_STRINGS, OPERATORS
arrays from an operator's text file description. |
public static void main(String[] args)
ASTNodeFactory's HEADER_STRINGS, OPERATOR_STRINGS, OPERATORS
arrays from an operator's text file description.args
- if args.length==0
take the default
/opertors.txt
file for generating the arrays; if
args.length>=1
the arg[0]
parameters
should contain the complete filename of the operator's description
filepublic static void generateOperatorTable(InputStream is, HashMap operatorMap, HashMap operatorTokenStartSet)
is
- the isoperatorMap
- the operator mapoperatorTokenStartSet
- the operator token start setCopyright © 2018. All rights reserved.