Start work on a compiler

This commit is contained in:
Scott Richmond 2023-05-20 14:25:33 -04:00
parent ae8f72d3b4
commit e02e972d27

View File

@ -2,4 +2,12 @@
(:require
[ludus.grammar :as g]
[ludus.parser-new :as p]
[ludus.scanner :as s]))
[ludus.scanner :as s]))
(def source
"1"
)
(def result (->> source s/scan :tokens (p/apply-parser g/script)))
(println result)