Reindent
This commit is contained in:
parent
a7ab313a5f
commit
23e29fdca2
|
@ -46,7 +46,7 @@
|
||||||
"true" true
|
"true" true
|
||||||
"false" false
|
"false" false
|
||||||
"nil" nil
|
"nil" nil
|
||||||
})
|
})
|
||||||
|
|
||||||
(defn- new-scanner
|
(defn- new-scanner
|
||||||
"Creates a new scanner."
|
"Creates a new scanner."
|
||||||
|
@ -332,7 +332,7 @@
|
||||||
(assoc scanner :start (:current scanner)))
|
(assoc scanner :start (:current scanner)))
|
||||||
|
|
||||||
(defn scan [source]
|
(defn scan [source]
|
||||||
(loop [scanner (new-scanner (str source "\n"))]
|
(loop [scanner (new-scanner source)]
|
||||||
(if (at-end? scanner)
|
(if (at-end? scanner)
|
||||||
(let [scanner (add-token scanner :eof)]
|
(let [scanner (add-token scanner :eof)]
|
||||||
{:tokens (:tokens scanner)
|
{:tokens (:tokens scanner)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user