Self-hosting compiler: Difference between revisions

Lingo added
(Lingo added)
Line 14:
((,~}:)~|.)'Go hang a salami '
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}}==
Anonymous user