masak / alma

ALgoloid with MAcros -- a language with Algol-family syntax where macros take center stage
Artistic License 2.0
137 stars 14 forks source link

Eat own `walk` dogfood after #26 #547

Open vendethiel opened 4 years ago

vendethiel commented 4 years ago

While we're still unsure of whether we want to write walk directly in Alma or first in Perl 6, these places would probably be good first customers:

https://github.com/masak/alma/blob/a31aafc9db8be3a8915178c8dd36be633835d060/lib/Alma/Q.pm6#L728-L794 https://github.com/masak/alma/blob/a31aafc9db8be3a8915178c8dd36be633835d060/lib/Alma/Runtime.pm6#L297-L318

Seems like it would be more complex to reuse something written in Alma than in Perl 6, but would be an interesting assessment of "where are we now".

masak commented 4 years ago

Also this one:

https://github.com/masak/alma/blob/e02a3382d0236ac664430e5c757027660048dea9/lib/Alma/Parser/Actions.pm6#L830-L955

masak commented 4 years ago

(And I guess that last one is a bit of an interesting outlier, since the previous two do whole-tree cloning, but this one only does traversal and side effects.)