Add Instantations to Grammar

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-02-06 07:45:29 -05:00
parent 285ba829cb
commit bc700509c1
7 changed files with 40 additions and 13 deletions
+4 -4
View File
@@ -43,8 +43,8 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
=========================
@@ -92,8 +92,8 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
=========================
@@ -141,8 +141,8 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
=========================
@@ -194,7 +194,7 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
@@ -0,0 +1,17 @@
=========================
Simple Instantiation
=========================
bool() main;
---
(p4program
(instantiation
(typeRef
(baseType
(bool)
)
)
(identifier)
)
(semicolon)
)
+2 -2
View File
@@ -29,8 +29,8 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
@@ -75,6 +75,6 @@ parser imple(bool pname) {
)
)
)
(semicolon)
)
(semicolon)
)
+3 -3
View File
@@ -45,8 +45,8 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
=========================
@@ -101,8 +101,8 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
=========================
@@ -181,7 +181,7 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
+2 -2
View File
@@ -29,8 +29,8 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)
=========================
@@ -83,6 +83,6 @@ parser simple() {
)
)
)
(semicolon)
)
(semicolon)
)