IvanRave / logic-tree

Build a JSON object from a logic expression string
14 stars 8 forks source link

Use any type of syntax for logic expressions, like SQL or JAVA #3

Open IvanRave opened 6 years ago

IvanRave commented 6 years ago

https://github.com/IvanRave/logic-tree/blob/master/README.md#different-syntax-in-programming-and-natural-languages

Mark-Partola commented 6 years ago

RegExp notation for negation marked as ^ is better for XOR

Mark-Partola commented 6 years ago

What do you think about case insensitive for logic operators? Configuration for this can be done in the Tokenizer

IvanRave commented 6 years ago

SQL operators must be uppercased or lowercased, but not mixed (isUpperCased XOR isLowerCased) :) I think it is not so important and can be skipped in first releases.