@@ -502,8 +502,8 @@ The local memory of execution is a byte-array (instead of a word-array).
502
502
- ` #padToWidth(N, WS) ` and ` #padRightToWidth ` make sure that a ` WordStack ` is the correct size.
503
503
504
504
``` {.k .concrete}
505
- syntax ByteArray :: = Bytes
506
- | ".ByteArray" [function]
505
+ syntax ByteArray = Bytes
506
+ syntax ByteArray ::= ".ByteArray" [function]
507
507
// --------------------------------------------
508
508
rule .ByteArray => .Bytes
509
509
@@ -543,8 +543,8 @@ The local memory of execution is a byte-array (instead of a word-array).
543
543
```
544
544
545
545
``` {.k .symbolic}
546
- syntax ByteArray :: = WordStack
547
- | ".ByteArray" [function]
546
+ syntax ByteArray = WordStack
547
+ syntax ByteArray ::= ".ByteArray" [function]
548
548
// --------------------------------------------
549
549
rule .ByteArray => .WordStack
550
550
@@ -575,7 +575,7 @@ The local memory of execution is a byte-array (instead of a word-array).
575
575
syntax ByteArray ::= ByteArray "++" ByteArray [function, memo, right, klabel(_++_WS), smtlib(_plusWS_)]
576
576
// -------------------------------------------------------------------------------------------------------
577
577
rule .WordStack ++ WS' => WS'
578
- rule (W : WS) ++ WS' => W : { WS ++ WS'}:>WordStack
578
+ rule (W : WS) ++ WS' => W : ( WS ++ WS')
579
579
580
580
syntax ByteArray ::= ByteArray "[" Int ".." Int "]" [function, functional, memo]
581
581
// --------------------------------------------------------------------------------
@@ -788,7 +788,7 @@ These parsers can interperet hex-encoded strings as `Int`s, `ByteArray`s, and `M
788
788
// -------------------------------------------------------------
789
789
rule #parseByteStack(S) => #parseHexBytes(replaceAll(S, "0x", ""))
790
790
rule #parseHexBytes("") => .ByteArray
791
- rule #parseHexBytes(S) => Int2Bytes(1, #parseHexWord(substrString(S, 0, 2)), BE) +Bytes { #parseHexBytes(substrString(S, 2, lengthString(S)))}:>Bytes requires lengthString(S) >=Int 2
791
+ rule #parseHexBytes(S) => Int2Bytes(1, #parseHexWord(substrString(S, 0, 2)), BE) +Bytes #parseHexBytes(substrString(S, 2, lengthString(S))) requires lengthString(S) >=Int 2
792
792
793
793
rule #parseByteStackRaw(S) => String2Bytes(S)
794
794
```
@@ -800,9 +800,9 @@ These parsers can interperet hex-encoded strings as `Int`s, `ByteArray`s, and `M
800
800
// -------------------------------------------------------------
801
801
rule #parseByteStack(S) => #parseHexBytes(replaceAll(S, "0x", ""))
802
802
rule #parseHexBytes("") => .WordStack
803
- rule #parseHexBytes(S) => #parseHexWord(substrString(S, 0, 2)) : { #parseHexBytes(substrString(S, 2, lengthString(S)))}:>WordStack requires lengthString(S) >=Int 2
803
+ rule #parseHexBytes(S) => #parseHexWord(substrString(S, 0, 2)) : #parseHexBytes(substrString(S, 2, lengthString(S))) requires lengthString(S) >=Int 2
804
804
805
- rule #parseByteStackRaw(S) => ordChar(substrString(S, 0, 1)) : { #parseByteStackRaw(substrString(S, 1, lengthString(S)))}:>WordStack requires lengthString(S) >=Int 1
805
+ rule #parseByteStackRaw(S) => ordChar(substrString(S, 0, 1)) : #parseByteStackRaw(substrString(S, 1, lengthString(S))) requires lengthString(S) >=Int 1
806
806
rule #parseByteStackRaw("") => .WordStack
807
807
```
808
808
0 commit comments