kyren / piccolo

An experimental stackless Lua VM implemented in pure Rust
Creative Commons Zero v1.0 Universal
1.67k stars 62 forks source link

initial impl of string.lower,reverse,upper and clippy fixes for string.sub #60

Closed Jengamon closed 4 months ago

Jengamon commented 5 months ago

I have initial sketch of string.lower, string.rep, string.reverse, and string.upper.

Jengamon commented 5 months ago

These would work "logically" under the utf8 table, but PUC-Lua has none of these functions there, so it's an open question as to where these should go. implementation changed to always treat strings as byte arrays!

Jengamon commented 5 months ago

string.rep is charging 1 fuel per repetition currently. string.rep impl was removed

kyren commented 4 months ago

Thank you, merged!