Self-hosting compiler: Difference between revisions
Content deleted Content added
Lingo added |
|||
Line 14: | Line 14: | ||
((,~}:)~|.)'Go hang a salami ' |
((,~}:)~|.)'Go hang a salami ' |
||
Go hang a salami imalas a gnah oG</lang> |
Go hang a salami imalas a gnah oG</lang> |
||
=={{header|Lingo}}== |
|||
<lang lingo>m = new(#script) |
|||
-- automatically triggers compilation to byte code |
|||
m.scriptText = "on foo ()"&RETURN&\ |
|||
" repeat with i = 1 to 3"&RETURN&\ |
|||
" put i"&RETURN&\ |
|||
" end repeat"&RETURN&\ |
|||
"end" |
|||
-- can be called immediately |
|||
foo() |
|||
-- 1 |
|||
-- 2 |
|||
-- 3 |
|||
-- for direct execution of simple code there is also the do() function |
|||
do("put _system.milliseconds") |
|||
-- 22476580</lang> |
|||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |