Start work on a compiler
This commit is contained in:
parent
ae8f72d3b4
commit
e02e972d27
|
@ -3,3 +3,11 @@
|
|||
[ludus.grammar :as g]
|
||||
[ludus.parser-new :as p]
|
||||
[ludus.scanner :as s]))
|
||||
|
||||
(def source
|
||||
"1"
|
||||
)
|
||||
|
||||
(def result (->> source s/scan :tokens (p/apply-parser g/script)))
|
||||
|
||||
(println result)
|
Loading…
Reference in New Issue
Block a user