Skip to content

Commit

Permalink
tests: try lexing example.yul, too.
Browse files Browse the repository at this point in the history
Add it to tracking, too.
  • Loading branch information
veox authored and Noel Maersk committed Mar 25, 2021
1 parent 429a455 commit c2e8cd4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ test:
- pip install -r requirements.txt
- pip install -e .
- pygmentize example.sol
- pygmentize example.yul
15 changes: 15 additions & 0 deletions example.yul
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// my function
function power(base, exponent) -> result
{
switch exponent
case 0 { result := 1 }
case 1 { result := base }
default
{
result := power(mul(base, base), div(exponent, 2))
switch mod(exponent, 2)
case 1 { result := mul(base, result) }
}
}
}

0 comments on commit c2e8cd4

Please sign in to comment.