Skip to content

Commit

Permalink
Fix bytes token rule in grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
aabounegm committed Dec 28, 2023
1 parent 4be3680 commit 9f4c9ac
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 93 deletions.
7 changes: 5 additions & 2 deletions eo-phi-normalizer/grammar/EO/Phi/Syntax.cf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
--
-- This is a non-ambiguous grammar for φ-programs.

token Bytes ({"--"} | ["0123456789ABCDEF"] ["0123456789ABCDEF"] ({"-"} ["0123456789ABCDEF"] ["0123456789ABCDEF"])* {"--"}) ;
token Bytes ({"--"}
| ["0123456789ABCDEF"] ["0123456789ABCDEF"] {"-"}
| (["0123456789ABCDEF"] ["0123456789ABCDEF"] {"-"} ["0123456789ABCDEF"] ["0123456789ABCDEF"])+)

This comment has been minimized.

Copy link
@deemp

deemp Jan 10, 2024

Member

This line is incorrect. According to the EO grammar, there should be BYTE (MINUS BYTE)+

This comment has been minimized.

Copy link
@aabounegm

aabounegm Jan 10, 2024

Author Collaborator

Ah, right, there is a misplaced parenthesis

;
token Function upper (char - [" \r\n\t,.|':;!-?][}{)(⟧⟦"])* ;
token LabelId lower (char - [" \r\n\t,.|':;!-?][}{)(⟧⟦"])* ;
token AlphaIndex ({"α0"} | {"α"} (digit - ["0"]) (digit)* ) ;
Expand All @@ -27,7 +30,7 @@ separator Binding "," ;
Phi. Attribute ::= "φ" ; -- decoratee object
Rho. Attribute ::= "ρ" ; -- parent object
Sigma. Attribute ::= "σ" ; -- home object
VTX. Attribute ::= "ν" ; -- ???
VTX. Attribute ::= "ν" ; -- an object that represents the unique identifier of the containing object
Label. Attribute ::= LabelId ;
Alpha. Attribute ::= AlphaIndex ;

Expand Down
2 changes: 1 addition & 1 deletion eo-phi-normalizer/src/Language/EO/Phi/Syntax/Abs.hs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

172 changes: 86 additions & 86 deletions eo-phi-normalizer/src/Language/EO/Phi/Syntax/Doc.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions eo-phi-normalizer/src/Language/EO/Phi/Syntax/Lex.x

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion eo-phi-normalizer/src/Language/EO/Phi/Syntax/Par.y

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion eo-phi-normalizer/src/Language/EO/Phi/Syntax/Print.hs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f4c9ac

Please sign in to comment.