Is there a way to comment everything to the end of the line, like --
in Haskell? The only comment syntax I could find was the {- commented stuff -}
syntax.
Asked
Active
Viewed 293 times
0

sid-kap
- 941
- 1
- 10
- 17
-
3Ofcourse happy allows that, since ghc is written via Happy. :) – Sibi Feb 06 '18 at 06:01
-
2You should try it and find out; and if you have a Happy program with single line comments which doesn't compile, then post that program and the error. – user2407038 Feb 06 '18 at 13:07
-
Ah, great! I assumed that since the file extension is `.y` and since Happy is based on yacc, that the comment syntax would be C-like (`/* */` and `//`). If one of you would like to answer the question, I'll mark it as correct! – sid-kap Feb 07 '18 at 06:32