Last active
May 2, 2023 02:46
-
-
Save 0racle/84b07e193a4e7efd08d92b7d691855ed to your computer and use it in GitHub Desktop.
Raku EVAL Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub infix:<p>($a, $b) is assoc<left> { $a + $b } | |
sub infix:<t>($a, $b) is assoc<left> { $a * $b } | |
for $=finish.lines -> $line { | |
say $line.trans('+*' => 'pt').&EVAL; | |
} | |
=finish | |
2 * 3 + (4 * 5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment