7 releases

0.0.7 Nov 1, 2023
0.0.6 Nov 1, 2023
0.0.5 Nov 25, 2022

#5 in #expression-language

Download history 1/week @ 2024-02-21 3/week @ 2024-02-28 3/week @ 2024-03-06 50/week @ 2024-03-13

56 downloads per month

MIT/Apache

46KB
1.5K SLoC

Simply Enough Condition Expression Language Parser

WORK IN PROGRESS

Simply Enough Condition Expression Language Grammar

      statement = if_expression
                ;
                
  if_expression = `if` `(` condition `;` expression `;` expression `)`
                ;
                
      condition = disjunction { `or` disjunction }
                ;
                
    disjunction = conjunction { `and` conjunction }
                ;
                
    conjunction = `(` condition `)`
                | comparison
                ;
                
     comparison = value (`=` | `<>` | `>` | `<` | `>=` | `<=`) value
                ;
                
     expression = value
                | if_expression
                ;
                
          value = NUMBER
                | NULL
                ;

License

Licensed under either of

at your option.

Contribution

All contributions intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.8–1.1MB
~20K SLoC