-
Notifications
You must be signed in to change notification settings - Fork 3
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
Parser edits #32
base: main
Are you sure you want to change the base?
Parser edits #32
Conversation
Things I still have to change before merging:
|
So far the error message indicates what token trips up the parser. It uses the token definitions from the Cooklang.y file and prints out the token. To me the token names seem pretty clear as to what they represent, but I'm wondering if anyone thinks they should be updated to be more clear. You can look at them here: https://github.com/Seth-Harlaar/cooklang-c/blob/a29c84a6ebc43170e7f562d694367bb2e1c81e6d/src/Cooklang.y#L40 |
Token names are pretty clear, indeed. Could you please share an error message example? |
Sure!
The output error message would be the following 2 lines: |
Hello ! |
also I don't understand the changes in cooklang.l file. We don't want to support UTF-8 anymore ? |
Oh, thanks for picking that up, I was making some changes to the parser and removed the UTF-8 to make testing easier. I will revert the changes. |
Oh ! Ok ! |
Hello ! |
How do you plan do manage to parse multi-line block comments ? |
Was not aware of Maybe in the parseMultipleLineString function we can check a return value from the parser and see if there is an opening and no closing to a block comment. From there we can tell the parser not to parse anything until it has detected a closing tag. |
Updated the way the parser parses strings and handles errors.
Major changes: