The parser stops when it recognizes one program and discards the rest. For example when parsing the number 1 followed by the number 2 followed by the number 3, only the number 1 is taken into account:

Goal: return an error in case where more than one program is given as an input.
Hint: the token EOL can be used to mark the end of the input
The parser stops when it recognizes one program and discards the rest. For example when parsing the number 1 followed by the number 2 followed by the number 3, only the number 1 is taken into account:

Goal: return an error in case where more than one program is given as an input.
Hint: the token EOL can be used to mark the end of the input