ThePrimeagen / ts-rust-zig-deez

610 stars 163 forks source link

feat(crystal): strings, conditions & evaluation #223

Closed devnote-dev closed 1 year ago

devnote-dev commented 1 year ago

This PR has quite a few changes, the most notable being paren -> curly (because it just makes sense), syntax guards (ensuring semicolons/etc), strings implementation, conditional statements and the evaluator. The builtin functions len and rev have also been added (following from #169 - nice). The REPL has also been updated to reflect these changes and uses the evaluator instead of the parser. I've tried to keep things as clean as possible, here's what it looks like:

image image image image