RISC JKU
at.jku.risc.stout.urmc.data

Class InputParser



  • public class InputParser
    extends Object
    Tiny term parser with the following rules:
    • [A-Za-z1-9_.] are allowed for variable names and function names. Names can be of any length.
    • If the name is followed by an opening parenthesis a Function will be generated. Parameter inside the pair of parenthesis are wrapped in a Hedge
    • Else if the first letter of the name is within [ VARIABLE_START, z] an individual variable will be generated.
    • Else a Function with zero parameters (=constant) will be generated.
    Author:
    Alexander Baumgartner