@mike.castillo.jr is comment actually part of your grammar? why? What happens if you remove it and set your lexer to set #:skip? t
on them? Do you still lose your position info?
Skipping comments removes the whole line from the parse (when it’s a whole line comment), but I’m not sure I want that. The language has goto and I might want to have jumps to any line (haven’t decided yet).
Line comments aren’t the larger problem anyhow. If I change [p-comment]
at the end to [p-number]
I get the same error if I have just a single number on a line. I can put p-number
under the p-statement
rule and then a single number is fine.
Maybe it’s not a pattern I really need (can work around), but I’d also like to understand what’s going on there.
basic question I can’t find answer to by racket’s help, going through menus, or googling: can you hide scroll bars in drracket?