Skip to content

Instantly share code, notes, and snippets.

@slp
Last active February 15, 2023 10:38
Show Gist options
  • Save slp/75c726e873eee33980cb9760457f8752 to your computer and use it in GitHub Desktop.
Save slp/75c726e873eee33980cb9760457f8752 to your computer and use it in GitHub Desktop.
gunyah-hypervisor.next Dynamic Earley patch
diff --git a/tools/grammars/typed_dsl.lark b/tools/grammars/typed_dsl.lark
index 8e8b2b2..16a3892 100644
--- a/tools/grammars/typed_dsl.lark
+++ b/tools/grammars/typed_dsl.lark
@@ -51,7 +51,7 @@ SIGN_OPERATOR : "+" | "-"
add_operation : _add_expr SIGN_OPERATOR _mult_expr
_shift_expr : _add_expr | shift_operation
-SHIFT_OPERATOR.2 : "<<" | ">>"
+SHIFT_OPERATOR : "<<" | ">>"
shift_operation : _shift_expr SHIFT_OPERATOR _add_expr
_relational_expr : _shift_expr | relational_operation
@@ -192,7 +192,7 @@ union_type : "union" IDENTIFIER
enumeration_type : "enumeration" IDENTIFIER
alternative_type : "type" IDENTIFIER
-PRIMITIVE_TYPE.2 : "sint8" | "sint16" | "sint32" | "sint64"
+PRIMITIVE_TYPE : "sint8" | "sint16" | "sint32" | "sint64"
| "bool" | "uint8" | "uint16" | "uint32" | "uint64" | "char"
| "sintptr" | "uintptr" | "sregister" | "uregister" | "size"
primitive_type : PRIMITIVE_TYPE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment