Comment parse error
LightAndLight opened this issue · comments
Isaac Elliott commented
Branch: https://github.com/LightAndLight/ipso/tree/issue/188
main : IO
main =
println "hi"
# println "bye"
results in a parse error, but it shouldn't.
Isaac Elliott commented
More:
main : IO ()
main =
comp
# hi
println "hi"
main : IO ()
main =
comp # hi
println "hi"
Isaac Elliott commented
I think I should just strip comments in the lexer. I've been hesitant because I suspect it would prevent me from reusing the lexer for a future documentation generator.