Last active
November 18, 2021 18:56
-
-
Save kelvingakuo/498f84518050bc93169a560d12c3185e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<query> ::= "SELECT " <columns> " FROM " <name> <terminal> | "SELECT " <columns> " FROM " <name> " WHERE " <conditionList> <terminal> | |
<columns> ::= (<name> ", ")+ | "*" | |
<name> ::= <letter>+ | <letter>+ "_" | <letter>+ "_" <digit>+ | |
<conditionList> ::= <condition> <comparator> <condition> | |
<comparator> ::= " AND " | " OR " | |
<condition> ::= <name> <operator> <term> | |
<operator> ::= " = " | " > " | " >= " | " < " | " <= " | |
<term> ::= <digit> | <digit> "." <digit> | <name> | |
<letter> ::= [a-z]+ | [A-Z]+ | |
<digit> ::= [1-9]+ | |
<terminal> ::= ";" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment