setup files for lexer part
This commit is contained in:
17
specification.rex
Normal file
17
specification.rex
Normal 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
|
||||
Reference in New Issue
Block a user