- Don't allow `discard` statements at the module-level
This commit is contained in:
Tristan B. Velloza Kildaire 2023-01-13 10:54:05 +02:00
parent 6333fdcd42
commit a4b9e7b393
1 changed files with 0 additions and 8 deletions

View File

@ -1823,14 +1823,6 @@ public final class Parser
/* Add the struct definition to the program */
modulle.addStatement(ztruct);
}
/* If it is a `discard` statement */
else if(symbol == SymbolType.DISCARD)
{
/* Parse the3 discard statement */
Statement statement = parseDiscard();
modulle.addStatement(statement);
}
else
{
expect("parse(): Unknown '" ~ tok.getToken() ~ "'");