Initial Commit

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-01-14 12:49:49 -05:00
commit 08beba6cb1
24 changed files with 1816 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
=========================
Parser (No Parameters)
=========================
parser simple() {
state testing {}
}
---
(p4program
(declaration
(parserDeclaration
(parserTypeDeclaration
(parser)
parser_name: (identifier)
)
(parserStates
(parserState
(state)
(identifier)
)
)
)
)
)
=========================
Parser (Parameters)
=========================
parser imple(bool pname) {
state testing {}
}
---
(p4program
(declaration
(parserDeclaration
(parserTypeDeclaration
(parser)
(identifier)
(nonEmptyParameterList
(parameter
(typeRef
(baseType
(bool)))
(identifier))))
(parserStates
(parserState
(state)
(identifier)
)
)
)
)
)