flaneur2020 / pua-lang

a dialect of The Monkey Programming Language
MIT License
3.28k stars 125 forks source link

+ `break` `continue` statements + `破圈` keyword #74

Closed meloalright closed 1 year ago

meloalright commented 1 year ago

See test case code

https://github.com/flaneur2020/pua-lang/blob/ead292cf804cb126fe6028ca68604a35e090cd86/src/evaluator/mod.rs#L644-L651

https://github.com/flaneur2020/pua-lang/blob/ead292cf804cb126fe6028ca68604a35e090cd86/src/evaluator/mod.rs#L661-L664

flaneur2020 commented 1 year ago

Thank you for your contribution!

How about calls it "破圈"? As we can consider a loop is a "圈", break a loop => "破圈"

meloalright commented 1 year ago

Thank you for your contribution!

How about calls it "破圈"? As we can consider a loop is a "圈", break a loop => "破圈"

looks great I will change it to "破圈"

meloalright commented 1 year ago

Thank you for your contribution! How about calls it "破圈"? As we can consider a loop is a "圈", break a loop => "破圈"

looks great I will change it to "破圈"

"破圈" is ready

https://github.com/flaneur2020/pua-lang/blob/e34d9b89bd3c7788b47cfb61f30a7506a5bc515d/src/lexer/mod.rs#L265

https://github.com/flaneur2020/pua-lang/blob/e34d9b89bd3c7788b47cfb61f30a7506a5bc515d/src/evaluator/mod.rs#L661-L664

flaneur2020 commented 1 year ago

Cool, thank you a lot!