![]() |
.. (לתיקייה המכילה) | |
Which of the following is considered a real | |
all except 1.10, 1.00 (extra zeros) |
Is "x^2+3x" a legal poly? | |
This is not a poly. The correct form is "x^2+3x^1". Notice that in the PDF poly example there is a typo: 5x^4+x+6x^4 ==> 5x^4+x^1+6x^4 |
Is it correct for the output file to include
newlines inside string lexemes? For example:
Line 17: Found token string (lexeme: 'a multiline | |
Yes, it is correct. |
When you wrote the token name "Lc" you meant "lc"? | |
Yes. |
Is the empty string ("") a valid one, or should we reject it? | |
"" is considered as a legal string. |
In the definition of poly - one of the examples contains | |
a coefficient, if exists, must be a positive one. Nonetheless, operators +/- appear between the terms. |
Is "-2" int or is it arith_op + int? | |
The second option, in both. |