.. (לתיקייה המכילה) | ||
What is the start variable of the grammar? | |
Obj |
Do we need to keep the error printouts in our lex file? Turn them into syntax error printouts? | |
Most definitely do NOT turn them into syntax errors - these are lexical errors! In practice, you will only be tested on files with valid tokens (no lexical errors) and strings will only be ascii strings with no line separation or escape sequences. |
Should we change the grammar to handle rule 6 in recursive descent? | |
No. You should just change the RD algorithm for that particular rule. |
Comments do not have a token in tokens.h. Does this mean we can remove the handling of comments from our lex file? | |
No, comments still need to be handled. They do not have a token because they have no meaning in the grammar, just like whitespace and newlines. |