Skip to content

Commit 0490deb

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 7c4b045 + 6f9f529 commit 0490deb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/common/exp-syntax.k

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ syntax PrefixPostfixExp ::= "++" Exp [klabel('PreIncr)]
1313
| Exp "--" [klabel('PostDecr)]
1414

1515
//use sort K instead of Exp for the sake of Lookup, others might be changed when needed
16-
syntax Exp ::= K "*" K [seqstrict, klabel('Mul)]
17-
| K "/" K [seqstrict, klabel('Div)]
16+
syntax Exp ::=
17+
K "*" K [seqstrict, klabel('Mul)]
18+
| Exp "/" Exp [seqstrict, klabel('Div)]
1819
| K "%" K [seqstrict, klabel('Remain)]
1920
| "+" Exp [strict, klabel('Plus)]
2021
| "-" Exp [strict, klabel('Minus)]

src/exec/var-lookup.k

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ rule [lvalue-typedLoc]:
174174
May be wrapped inside lvalue. If lookup is unwrapped, it evaluates to TypedVal - the store value,
175175
of the type T - the second lookup argument. If lookup is wrapped into lvalue, it evaluates to loc(OL)::T.
176176
*/
177-
syntax Lookup ::= lookup (
177+
syntax Exp ::= lookup (
178178
Int, //OL - the store location to lookup
179179
Type // T - the compile-time type of the resulting value
180180
)

0 commit comments

Comments
 (0)