Skip to content

Commit

Permalink
Replace usages of priorities, require, and import (#991)
Browse files Browse the repository at this point in the history
Part of runtimeverification/k#4009

Replace usages of deprecated tokens:

- `syntax priorities` with `syntax priority`
- `require` with `requires`
- `import` with `imports`
  • Loading branch information
Scott-Guest authored Feb 22, 2024
1 parent d3c1ee7 commit 351ec30
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/defn/k-files/lambda-anywhere.k
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) K Team. All Rights Reserved.

require "substitution.md"
requires "substitution.md"

module LAMBDA-SYNTAX
imports DOMAINS-SYNTAX
Expand Down
2 changes: 1 addition & 1 deletion test/defn/k-files/lambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ below. Then we should make sure we import its module called SUBSTITUTION
in our LAMBDA module below.

```k
require "substitution.md"
requires "substitution.md"
module LAMBDA-SYNTAX
imports DOMAINS-SYNTAX
Expand Down
2 changes: 1 addition & 1 deletion test/defn/k-files/test21.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for arithmetic and Boolean expressions, and variable assignment,
conditional, while loop and sequential composition constructs for statements.

```k
require "ffi.md"
requires "ffi.md"
module TEST-SYNTAX
imports DOMAINS-SYNTAX
imports BASIC-K
Expand Down
4 changes: 2 additions & 2 deletions test/defn/k-files/wasm-maps.k
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module MAP-INT-TO-INT

syntax MapIntToInt ::= MapIntToInt "[" key: WrappedInt "<-" value: WrappedInt "]" [function, total, klabel(MapInt2Int:update), symbol, hook(MAP.update), prefer]

syntax priorities _Int2Int|->_ > _MapIntToInt_ .MapIntToInt
syntax priority _Int2Int|->_ > _MapIntToInt_ .MapIntToInt
syntax non-assoc _Int2Int|->_

syntax MapIntToInt ::= MapIntToInt "{{" key: Int "<-" value: Int "}}"
Expand Down Expand Up @@ -61,7 +61,7 @@ module MAP-INT-TO-VAL

syntax MapIntToVal ::= MapIntToVal "[" key: WrappedInt "<-" value: Val "]" [function, total, klabel(MapInt2Val:update), symbol, hook(MAP.update), prefer]

syntax priorities _Int2Val|->_ > _MapIntToVal_ .MapIntToVal
syntax priority _Int2Val|->_ > _MapIntToVal_ .MapIntToVal
syntax non-assoc _Int2Val|->_

syntax MapIntToVal ::= MapIntToVal "{{" key: Int "<-" value: Val "}}"
Expand Down

0 comments on commit 351ec30

Please sign in to comment.