lucassouzamatos / chico.lang

:sparkles: :smiley_cat: a functional toy language
MIT License
18 stars 1 forks source link

Add support for pipe operators #7

Open lucassouzamatos opened 2 years ago

lucassouzamatos commented 2 years ago

Example of implementation:

fun sum(A B) -> 
  apply + A B done 
done

var A := 12
var B := 1

apply 
   > math:sum A B
  |> math:sum $ 10
done

It should returns this [result]: 23