puffnfresh / roy

Small functional language that compiles to JavaScript.
http://roy.brianmckenna.org/
MIT License
836 stars 74 forks source link

syntax for comments #127

Open dominictarr opened 12 years ago

dominictarr commented 12 years ago

syntax for comments is really awkward.

console.log('hello') // comment
Error: Parse error on line 2: Unexpected 'COMMENT'

the expected behaviour is for the parser to just ignore comments.

cognominal commented 11 years ago

Indeed the parser should accept comments in "natural" places. This is a major annoyance because one cannot just comment out code that does not work. One must move it in a safe place first.