LightAndLight / ipso

A functional scripting language.

Home Page:https://ipso.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comment parse error

LightAndLight opened this issue · comments

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.

More:

main : IO ()
main =
  comp
    # hi
    println "hi"
main : IO ()
main =
  comp # hi
    println "hi"

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.