Skip to content

Commit e8dee7e

Browse files
authored
isle: BNF glitches (bytecodealliance#9920)
* isle: BNF <int> glitch such that it wouldn't match wildcard `_` * fix `extern const` syntax
1 parent 2bd01ce commit e8dee7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cranelift/isle/docs/language-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ The grammar accepted by the parser is as follows:
14911491
14921492
<prio> ::= <int>
14931493
1494-
<int> ::= [ "-" ] ( "0".."9" | "_" )+
1494+
<int> ::= [ "-" ] ( "0".."9" ) ( "0".."9" | "_" )*
14951495
| [ "-" ] "0" ("x" | "X") ( "0".."9" | "A".."F" | "a".."f" | "_" )+
14961496
| [ "-" ] "0" ("o" | "O") ( "0".."7" | "_" )+
14971497
| [ "-" ] "0" ("b" | "B") ( "0".."1" | "_" )+
@@ -1521,7 +1521,7 @@ The grammar accepted by the parser is as follows:
15211521
15221522
<extern> ::= "constructor" <ident> <ident>
15231523
| "extractor" [ "infallible" ] <ident> <ident>
1524-
| "const" <const-ident> <ident> <ty>
1524+
| "const" <const-ident> <ty>
15251525
15261526
<converter> ::= <ty> <ty> <ident>
15271527
```

0 commit comments

Comments
 (0)