-
Notifications
You must be signed in to change notification settings - Fork 5
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
Comment handling #10
Comments
I did some prottyping of a comment ideom. So there are now two main predicates, comment(S,E), comment_rec(S,E), /* not yet */ The text version will collect the text between and included S,E with the interpretation that I did some prototyping here, check it out if you like. |
Two questions and one request:
Any reason not put this into a PR (along with some tests to ensure it's working as expected)? This will let us have inline discussions about particular points of the code. The tests will also help show us some examples, which would help me nail down what's going on (my DCG abilities are rusty :) ). |
Also I will try to put it into a PR |
I have approved #33 (review) |
Proposed enhancement:
Add a repeatable option
comment(Start, End)
that discards all material between start and end.One could add an option comments that causes the tokenizer to include
comment(Text)
as a token, where Text is the contents of the comment.So, to get Prolog comments,
comment('%', '\n')
or to get C style comments,comment('/*', '*/')
Issue: What about nested comments?
The text was updated successfully, but these errors were encountered: