Skip to content

Commit 989a738

Browse files
Replace usages of priorities, require, and import (#582)
* Replace deprecated tokens * Set Version: 0.1.6 --------- Co-authored-by: devops <[email protected]>
1 parent f65bbdc commit 989a738

13 files changed

+26
-26
lines changed

auxil.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Auxiliary Wasm Commands
44
Generally useful commands that are not part of the actual Wasm semantics.
55

66
```k
7-
require "wasm.md"
7+
requires "wasm.md"
88
99
module WASM-AUXIL-SYNTAX
1010
imports WASM-SYNTAX

data/int-type.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
module INT-TYPE
3-
import INT
3+
imports INT
44

55
syntax WrappedInt
66
syntax Int

data/list-int.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "int-type.k"
1+
requires "int-type.k"
22

33
module LIST-INT
44
imports private INT-SYNTAX

data/list-ref.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
module LIST-REF
4-
import WASM-DATA-INTERNAL-SYNTAX
4+
imports WASM-DATA-INTERNAL-SYNTAX
55
imports private INT-SYNTAX
66
imports private BASIC-K
77

data/map-int-to-int.k

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
require "int-type.k"
3-
// require "int-type.k"
4-
require "list-int.k"
2+
requires "int-type.k"
3+
// requires "int-type.k"
4+
requires "list-int.k"
55

66
module MAP-INT-TO-INT
77
imports private BOOL-SYNTAX
@@ -33,7 +33,7 @@ module MAP-INT-TO-INT
3333
injective
3434
]
3535

36-
syntax priorities _Int2Int|->_ > _MapIntToInt_ .MapIntToInt
36+
syntax priority _Int2Int|->_ > _MapIntToInt_ .MapIntToInt
3737
syntax non-assoc _Int2Int|->_
3838
syntax WrappedInt ::= MapIntToInt "[" WrappedInt "]"
3939
[function, hook(MAP.lookup), klabel(MapIntToInt:lookup), symbol]

data/sparse-bytes.k

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
module SPARSE-BYTES
3-
import BOOL
4-
import BYTES
5-
import INT
3+
imports BOOL
4+
imports BYTES
5+
imports INT
66

77
syntax SBItem ::= #empty(Int) [symbol, klabel(SBItem:empty)]
88
| #bytes(Bytes) [symbol, klabel(SBItem:bytes)]

data/tools.k

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "list-int.k"
1+
requires "list-int.k"
22

33
module WASM-DATA-TOOLS
44
imports BOOL

numeric.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In this file we implement the numeric rules specified in section `4.3 Numerics`
66
In the notations of some operators, `sx` is the signedness of the operator and could be either `s` (signed) or `u` (unsigned), which indicates whether the operands should be interpreted as signed integer or unsigned integer.
77

88
```k
9-
require "data.md"
9+
requires "data.md"
1010
1111
module WASM-NUMERIC-SYNTAX
1212

package/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.5
1+
0.1.6

pykwasm/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pykwasm"
7-
version = "0.1.5"
7+
version = "0.1.6"
88
description = ""
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",

test.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ KWasm Testing
44
For testing, we augment the semantics with some helpers.
55

66
```k
7-
require "wasm-text.md"
8-
require "auxil.md"
7+
requires "wasm-text.md"
8+
requires "auxil.md"
99
```
1010

1111
Module `WASM-TEST-SYNTAX` is just used for program parsing and `WASM-TEST` consists of the definitions both for parsing and execution.

wasm-text.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ WebAssembly Text Format
22
=======================
33

44
```k
5-
require "wasm.md"
6-
require "data.md"
5+
requires "wasm.md"
6+
requires "data.md"
77
88
module WASM-TEXT-SYNTAX
99
imports WASM-SYNTAX

wasm.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ WebAssembly State and Semantics
22
===============================
33

44
```k
5-
require "data.md"
6-
require "data/list-int.k"
7-
require "data/list-ref.k"
8-
require "data/map-int-to-int.k"
9-
require "data/sparse-bytes.k"
10-
require "data/tools.k"
11-
require "numeric.md"
5+
requires "data.md"
6+
requires "data/list-int.k"
7+
requires "data/list-ref.k"
8+
requires "data/map-int-to-int.k"
9+
requires "data/sparse-bytes.k"
10+
requires "data/tools.k"
11+
requires "numeric.md"
1212
1313
module WASM-SYNTAX
1414
imports WASM-DATA-SYNTAX

0 commit comments

Comments
 (0)