Compiler/AST interpreter: Difference between revisions
Content deleted Content added
Added output sample. |
|||
Line 2,301: | Line 2,301: | ||
discard ast.interp()</lang> |
discard ast.interp()</lang> |
||
{{out}} |
|||
Output from the program ASCII Mandelbrot: https://rosettacode.org/wiki/Compiler/Sample_programs#Ascii_Mandlebrot |
|||
<pre>1111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222211111 |
|||
1111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222211 |
|||
1111111111111111112222222222222222222222222222222222222222222222222222222222222222222222222222222222222 |
|||
1111111111111111222222222222222222233333333333333333333333222222222222222222222222222222222222222222222 |
|||
1111111111111112222222222222333333333333333333333333333333333333222222222222222222222222222222222222222 |
|||
1111111111111222222222233333333333333333333333344444456655544443333332222222222222222222222222222222222 |
|||
1111111111112222222233333333333333333333333444444445567@@6665444444333333222222222222222222222222222222 |
|||
11111111111222222333333333333333333333334444444445555679@@@@7654444443333333222222222222222222222222222 |
|||
1111111112222223333333333333333333333444444444455556789@@@@98755544444433333332222222222222222222222222 |
|||
1111111122223333333333333333333333344444444445556668@@@ @@@76555544444333333322222222222222222222222 |
|||
1111111222233333333333333333333344444444455566667778@@ @987666555544433333333222222222222222222222 |
|||
111111122333333333333333333333444444455556@@@@@99@@@@@@ @@@@@@877779@5443333333322222222222222222222 |
|||
1111112233333333333333333334444455555556679@ @@@ @@@@@@ 8544333333333222222222222222222 |
|||
1111122333333333333333334445555555556666789@@@ @86554433333333322222222222222222 |
|||
1111123333333333333444456666555556666778@@ @ @@87655443333333332222222222222222 |
|||
111123333333344444455568@887789@8777788@@@ @@@@65444333333332222222222222222 |
|||
111133334444444455555668@@@@@@@@@@@@99@@@ @@765444333333333222222222222222 |
|||
111133444444445555556778@@@ @@@@ @855444333333333222222222222222 |
|||
11124444444455555668@99@@ @ @655444433333333322222222222222 |
|||
11134555556666677789@@ @86655444433333333322222222222222 |
|||
111 @@876555444433333333322222222222222 |
|||
11134555556666677789@@ @86655444433333333322222222222222 |
|||
11124444444455555668@99@@ @ @655444433333333322222222222222 |
|||
111133444444445555556778@@@ @@@@ @855444333333333222222222222222 |
|||
111133334444444455555668@@@@@@@@@@@@99@@@ @@765444333333333222222222222222 |
|||
111123333333344444455568@887789@8777788@@@ @@@@65444333333332222222222222222 |
|||
1111123333333333333444456666555556666778@@ @ @@87655443333333332222222222222222 |
|||
1111122333333333333333334445555555556666789@@@ @86554433333333322222222222222222 |
|||
1111112233333333333333333334444455555556679@ @@@ @@@@@@ 8544333333333222222222222222222 |
|||
111111122333333333333333333333444444455556@@@@@99@@@@@@ @@@@@@877779@5443333333322222222222222222222 |
|||
1111111222233333333333333333333344444444455566667778@@ @987666555544433333333222222222222222222222 |
|||
1111111122223333333333333333333333344444444445556668@@@ @@@76555544444333333322222222222222222222222 |
|||
1111111112222223333333333333333333333444444444455556789@@@@98755544444433333332222222222222222222222222 |
|||
11111111111222222333333333333333333333334444444445555679@@@@7654444443333333222222222222222222222222222 |
|||
1111111111112222222233333333333333333333333444444445567@@6665444444333333222222222222222222222222222222 |
|||
1111111111111222222222233333333333333333333333344444456655544443333332222222222222222222222222222222222 |
|||
1111111111111112222222222222333333333333333333333333333333333333222222222222222222222222222222222222222 |
|||
1111111111111111222222222222222222233333333333333333333333222222222222222222222222222222222222222222222 |
|||
1111111111111111112222222222222222222222222222222222222222222222222222222222222222222222222222222222222 |
|||
1111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222211</pre> |
|||
=={{header|Perl}}== |
=={{header|Perl}}== |