Class GenerateOperatorArrays

java.lang.Object
org.matheclipse.parser.server.util.GenerateOperatorArrays

public class GenerateOperatorArrays extends Object
Utility for generating source codes for the ASTNodeFactory's HEADER_STRINGS, OPERATOR_STRINGS, OPERATORS arrays from the operators.txt textfile description
  • Constructor Details

    • GenerateOperatorArrays

      public GenerateOperatorArrays()
  • Method Details

    • main

      public 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.
      Parameters:
      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 file
    • generateOperatorTable

      public static void generateOperatorTable(InputStream is, HashMap operatorMap, HashMap operatorTokenStartSet)
      Generate operator table.
      Parameters:
      is - the is
      operatorMap - the operator map
      operatorTokenStartSet - the operator token start set