Skip to content

Commit

Permalink
support declaration and initialization to literal
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Aug 22, 2024
1 parent 8ee58ba commit fc64ebe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/statement.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ module SOLIDITY-STATEMENT
rule <k> LT:TypeName X:Id = v(V, RT) ; => .K ...</k>
<env> E => E [ X <- var(!I:Int, LT) ] </env>
<store> S => S [ !I <- convert(V, RT, LT) ] </store>
rule <k> LT:TypeName X:Id = N:NumberLiteral ; => .K ...</k>
<env> E => E [ X <- var(!I:Int, LT) ] </env>
<store> S => S [ !I <- convert(Number2Int(N), LT) ] </store>
endmodule

0 comments on commit fc64ebe

Please sign in to comment.