setup files for lexer part

This commit is contained in:
Bilal Catic
2020-01-23 09:05:32 +01:00
parent b26d697c6e
commit c83a249c04
5 changed files with 55 additions and 1 deletions

17
specification.rex Normal file
View File

@@ -0,0 +1,17 @@
class Query
macro
rule
.
inner
def tokenize(code)
scan_setup(code)
tokens = []
while token = next_token
tokens << token
end
tokens
end
end