solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
contract C {
    uint public called;
    modifier mod1 {
        called++;
        _;
    }
    function f(uint x) public mod1 returns (uint256 r) {
        return x == 0 ? 2 : f(x - 1)**2;
    }
}

// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// called() -> 0x00
// f(uint256): 5 -> 0x0100000000
// called() -> 6