.. (לתיקייה המכילה) | ||
In rule 19, which is it BRACE like the pdf or BRACKET like the code? | |
It should be BRACKET, just like the code. |
There is no token for RGB, what should we do with its regex in the lex file? | |
You can remove it, but you don't have to. |
What is the representation of $ (end of input) in the HW assignment? For example, when initializing the "follow" of S. | |
We added a special token in "token.h" to represent $, and it is "EF". |
What should we do with the COMMA token? It was not declared in HW1 and it is not used in any of the grammar rules. | |
You can ignore it entirely. |
Can we use C++11 or any higher standards? | |
No, you should compile your code with C++98 (so don't change the makefile provided). |
When encountering a syntax error, do all the previous rule number have to be printed? | |
Yes, you need to print all the rule numbers you used up until the syntax error itself. For instance: 1 2 4 Syntax error |