Parse Struct Declarations

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-27 03:33:15 -04:00
parent 5abaac2816
commit cd26d1d22c
14 changed files with 426 additions and 155 deletions
@@ -232,3 +232,31 @@ parser simple() {
)
)
=========================
Simple Struct Type Declaration
=========================
struct Testing {
string fieldA;
};
---
(p4program
(declaration
(type_declaration
(struct_declaration
(struct)
(identifier)
(struct_declaration_fields
(variableDeclaration
(typeRef
(baseType
(string)
)
)
(identifier)
)
)
)
)
)
)