Added initial elements for SQL.
This commit is contained in:
8
src/morethantext/mttsql.pest
Normal file
8
src/morethantext/mttsql.pest
Normal file
@@ -0,0 +1,8 @@
|
||||
whitespace = _{" " | "\t" | "\r" | "\n"}
|
||||
action = {"create"}
|
||||
object = {"database"}
|
||||
char = _{ ASCII_ALPHANUMERIC | "_" }
|
||||
name = {char+}
|
||||
command = {whitespace* ~ action ~ whitespace+ ~ object ~ whitespace+ ~ name ~ whitespace* ~ ";" ~ whitespace*}
|
||||
script = {command+}
|
||||
file = _{SOI ~ script ~ EOI}
|
||||
Reference in New Issue
Block a user