-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
comments for #lang peg #6
Comments
change main.rkt, on the peg-port->scheme function, to : " well, just put out the comments before processing. This will resolve, right? |
It would be slightly incorrect to strip comments this way, for example if // occured inside a string literal it would be treated as a comment. For the optimal solution comment support needs to be added to https://github.com/rain-1/racket-peg/blob/master/peg-in-peg.rkt |
To achieve this I believe we would need to update the After editing peg-in-peg.rkt the file https://github.com/rain-1/racket-peg/blob/master/peg-in-peg-expanded.rkt must be manually created by using the racket macro expander. |
I tested this and work. Can put comments in the end of a rule or between rules //some comment //between a < 'h' ; //end //after |
as a problem, I can't remove 'out' of the formed struct, probably because a misunderstanding of relation between < <- and <-- in diferente rules. |
|
We would like
//
comments.The text was updated successfully, but these errors were encountered: