KeliLanguage / compiler

The compiler for Keli
https://keli-language.gitbook.io/doc/specification/
Apache License 2.0
171 stars 1 forks source link

Update case expression #60

Closed wongjiahau closed 5 years ago

wongjiahau commented 5 years ago

Based on #59 , change the syntax from

= Shape.Circle(5).
    case(.Circle(r)):
        (3.14.*(r.square))

to

= Shape.Circle(5).
    if(.Circle(r)) then
        (3.14.*(r.square))