yurtsiv / mooncake

🌜 A functional, dynamic programming language
MIT License
12 stars 4 forks source link

Add character type #4

Closed yurtsiv closed 3 years ago

yurtsiv commented 3 years ago

Syntax

let a = 'a'
let b = 'b'
let ab = 'ab' # wrong

Semantics

The behavior of ==, >, >=, <, <= operators should be the same as in Haskell.

f.e.

'a' == 'a'  # True
'b' > 'a'    # True
'B' > 'a'    # False
aitorres commented 3 years ago

Hello! I'm going to submit a PR that adds support for char type, as well as the comparison operators, and both parser and interpreter tests

yurtsiv commented 3 years ago

Hello @aitorres, thanks a lot! I'll take a look shortly.