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) |
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 descriptionargs
- 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)
Copyright © 2016. All rights reserved.