Michael2109 / cobalt

The Cobalt programming language
GNU Lesser General Public License v3.0
37 stars 10 forks source link

Parse pattern matching #530

Open Michael2109 opened 6 years ago

Michael2109 commented 6 years ago
match x with
    1 ->  // do something
    2 ->  // do something
    _ ->  print("Default Called")