Narcissist: Difference between revisions

m
→‎{{header|Phix}}: missing /, or type it in
m (→‎{{header|Phix}}: use pygments, simplified)
m (→‎{{header|Phix}}: missing /, or type it in)
 
(2 intermediate revisions by the same user not shown)
Line 418:
<!--(notonline)-->
<syntaxhighlight lang="phix">
printf(1,"\n\n%t\n\n",get_text(command_line()[2],GT_LF_LAST)[$1]=gets(0))
</syntaxhighlight>
{{out}}
<small>Aside: I suppose there should really be a leading <code>without js -- file i/o</code>, but I wanted to keep it a 1-liner.</small>
Can be run using <code>p test.exw < test.exw</code> or the input manually typed in
<pre>
true
</pre>
<small>Aside: I suppose there should really be a leading <code>without js -- file i/o</code>, but I wanted to keep it a 1-liner.</smallbr>
Interpreted-only, as is: to allow a compiled version to run, change <code>command_line()[2]</code> to (say) <code>"test.exw"</code><br>
or maybe <code>substitute(command_line()[2],".exe",".exw")</code>, and ship with/install the source code file.</small>
 
=={{header|PicoLisp}}==
7,805

edits