Self-hosting compiler: Difference between revisions

m
syntax highlighting fixup automation
m (syntax highlighting fixup automation)
Line 34:
=={{header|J}}==
 
<langsyntaxhighlight Jlang="j">do =: ".
STDIN =: 1
do read STDIN
Line 41:
".1!:1[1
((,~}:)~|.)'Go hang a salami '
Go hang a salami imalas a gnah oG</langsyntaxhighlight>
 
{{omit from|Julia}}
Line 52:
=={{header|Lingo}}==
Propably not how the task was meant by the OP, but if "compiling code at runtime" counts, here Lingo's capabilities to do this:
<langsyntaxhighlight lang="lingo">m = new(#script)
 
-- automatically triggers compilation to byte code
Line 69:
-- for direct execution of simple code there is also the do() function
do("put _system.milliseconds")
-- 22476580</langsyntaxhighlight>
 
=={{header|Nim}}==
Line 101:
(formerly Perl 6)
 
<syntaxhighlight lang="raku" perl6line>use MONKEY-SEE-NO-EVAL;
EVAL slurp</langsyntaxhighlight>
 
=={{header|Rust}}==
Line 127:
Source ->
Compiled -> http://ideone.com/UHMQco
<langsyntaxhighlight lang="zed">(*) number1 number2
comment:
#true
Line 1,397:
comment:
#true
(zed->scheme!) "value" nil</langsyntaxhighlight>
 
=={{header|zkl}}==
10,327

edits