Skip to content

Instantly share code, notes, and snippets.

View nithinivi's full-sized avatar
🎯
Focusing

निധിin nithinivi

🎯
Focusing
View GitHub Profile
<condition> ::= [ "NOT" ] <disjunction>
<disjunction> ::= <conjunction> { "OR" <conjunction> }
<conjunction> ::= <predicate> { "AND" <predicate> }
<predicate> ::= <expression>
| "(" <condition> ")"
<expression> ::= <column> <comp_op> <value>
grammar SPQL;
// ---- Parser rule ----
//
spql
: condition EOF
;
condition
: disjunction?