aspizu / goboscript

goboscript is the Scratch compiler
https://aspizu.github.io/goboscript
MIT License
76 stars 14 forks source link

Ceil Block does not work #30

Closed LoganAbel closed 6 months ago

LoganAbel commented 6 months ago

ceil (2.5) in goboscript produced the following block:

image

Instead, "ceiling of" should be produced like this:

image

I think this might be an issue with line 82 of goboscript / src / blocks.rs : Self::Ceil => Some("{\"OPERATOR\": [\"ceil\", null]}"),

aspizu commented 6 months ago

https://github.com/aspizu/goboscript/blob/b2c4c8711084c1fbc1c432f80919f2f299a9a3c6/gdsl.txt#L10

Change ...=ceil to ...=ceiling, then run gdsl.py from root of repository.

LoganAbel commented 6 months ago

Thanks, that worked

aspizu commented 6 months ago

could you make a PR?