Skip to content

Commit

Permalink
Update regex terminals to match new syntax (#627)
Browse files Browse the repository at this point in the history
* Update regex to match new syntax

* Set Version: 0.1.47

---------

Co-authored-by: devops <[email protected]>
  • Loading branch information
Scott-Guest and devops authored May 9, 2024
1 parent 25cdb9d commit 075f1e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.46
0.1.47
2 changes: 1 addition & 1 deletion pykwasm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pykwasm"
version = "0.1.46"
version = "0.1.47"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
6 changes: 3 additions & 3 deletions pykwasm/src/pykwasm/kdist/wasm-semantics/wasm-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Note that you cannot use a normal K `String` in any production definitions, beca
In WebAssembly, identifiers are defined by the regular expression below.

```k
syntax IdentifierToken ::= r"\\$[0-9a-zA-Z!$%&'*+/<>?_`|~=:\\@^.-]+" [token]
syntax IdentifierToken ::= r"\\$[0-9a-zA-Z!$%&'*+/<>?_`|~=:\\@\\^.\\-]+" [token]
// ----------------------------------------------------------------------------
```

Expand All @@ -45,8 +45,8 @@ In WebAssembly, integers could be represented in either the decimal form or hexa
In both cases, digits can optionally be separated by underscores.

```k
syntax WasmIntToken ::= r"[\\+-]?[0-9]+(_[0-9]+)*" [token]
| r"[\\+-]?0x[0-9a-fA-F]+(_[0-9a-fA-F]+)*" [token]
syntax WasmIntToken ::= r"[\\+\\-]?[0-9]+(_[0-9]+)*" [token]
| r"[\\+\\-]?0x[0-9a-fA-F]+(_[0-9a-fA-F]+)*" [token]
// ------------------------------------------------------------------------
```

Expand Down

0 comments on commit 075f1e9

Please sign in to comment.