SQL::Lexer
** Under Construction - Pull requests welcome **
Description
This grammer is a foundation for SQL Language parsers. It handles the common lexical constructs of SQL.
Primary Tokens
Special Characters
singlequotedoublequotequote- either single or doublebackquoteperiodunderscoreplus-signminus-signleft-parenright-parencolonsemicoloncommasolidus- ordinary forward slash
Comments
simple-comment- '--' or '#' to end-of-linebracketed-comment- '/*' to '*/' multi-line commentcomment- either of the above
Literals
literalsigned-numeric-literalunsigned-numeric-literalchar-sting-literaldatetime-literalinterval-literaldate-stringtime-stringtimestamp-stringboolean-literal
Operators
operator-symbolequals-operatornon-equals-operatorless-than-operatorgreater-than-operatorplus-operatorminus-operatormultiply-operatordivide-operatorgreater-than-or-equals-operatorless-than-or-equals-operator
Identifiers
quoted-labelquoted with backtickregular-identifierkeywordnon-reserved-wordreserved-word
=== Other ===
variable