Revised some commentary.
I had an idea to try and merge the lexer and the parser. It is, after all, a PEG-generated lexer, and PEGs are supposed to generate parsers, right? But the elegance of the separation at this point is so nice and straightforward that I don't think I win anything by merging them.
This commit is contained in:
parent
1c3103815f
commit
d286d05537
|
@ -79,6 +79,7 @@ class Contexter
|
||||||
else
|
else
|
||||||
""
|
""
|
||||||
|
|
||||||
|
# This is really the compiler at this point...
|
||||||
|
|
||||||
module.exports = (ast, data) ->
|
module.exports = (ast, data) ->
|
||||||
context = new Contexter(data)
|
context = new Contexter(data)
|
||||||
|
|
Loading…
Reference in New Issue