Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.24 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.24 KB

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.