tiancaiamao / shen-go

A Go implementation of the Shen programming language
Other
55 stars 4 forks source link

*: make 'type' as a macro instead of a primitive, all test pass #30

Closed tiancaiamao closed 2 years ago

tiancaiamao commented 2 years ago

S31 use something like (type XXX (list Symbol)), eval the second parameter will result in error. So type primitive should not be a primitive, it should be a macro-like so the evaluation rule can ignore the second parameter.

See https://groups.google.com/g/qilang/c/3ZhDzl_-e9s

Now all test S31 test pass using the interpreter mode.