Skip to content

Commit

Permalink
isle: BNF glitches (bytecodealliance#9920)
Browse files Browse the repository at this point in the history
* isle: BNF <int> glitch

such that it wouldn't match wildcard `_`

* fix `extern const` syntax
  • Loading branch information
eagr authored Jan 5, 2025
1 parent 2bd01ce commit e8dee7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cranelift/isle/docs/language-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ The grammar accepted by the parser is as follows:
<prio> ::= <int>
<int> ::= [ "-" ] ( "0".."9" | "_" )+
<int> ::= [ "-" ] ( "0".."9" ) ( "0".."9" | "_" )*
| [ "-" ] "0" ("x" | "X") ( "0".."9" | "A".."F" | "a".."f" | "_" )+
| [ "-" ] "0" ("o" | "O") ( "0".."7" | "_" )+
| [ "-" ] "0" ("b" | "B") ( "0".."1" | "_" )+
Expand Down Expand Up @@ -1521,7 +1521,7 @@ The grammar accepted by the parser is as follows:
<extern> ::= "constructor" <ident> <ident>
| "extractor" [ "infallible" ] <ident> <ident>
| "const" <const-ident> <ident> <ty>
| "const" <const-ident> <ty>
<converter> ::= <ty> <ty> <ident>
```
Expand Down

0 comments on commit e8dee7e

Please sign in to comment.