LightAndLight / ipso

A functional scripting language.
https://ipso.dev
17 stars 1 forks source link

Comment parse error #188

Closed LightAndLight closed 1 year ago

LightAndLight commented 2 years ago

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.

LightAndLight commented 2 years ago

More:

main : IO ()
main =
  comp
    # hi
    println "hi"
main : IO ()
main =
  comp # hi
    println "hi"
LightAndLight commented 2 years ago

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.