grammar: Add exit statement

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-04-20 02:27:08 -04:00
parent fa1f694d76
commit 6cb28bc873
2 changed files with 31 additions and 2 deletions
+28
View File
@@ -1,4 +1,32 @@
=========================
Exit Statement
=========================
control T() {
apply {
exit;
}
};
---
(p4program
(declaration
(control_declaration
(control)
(identifier)
(parameters)
(apply)
(statement
(blockStatement
(statements
(statement
(exit_statement)
)
)
)
)
)
)
)
=========================
Return Statement
=========================
int fun() {