Narcissist: Difference between revisions

(Added AppleScript.)
Line 374:
// if we got here, the lines are the same
println "Accept"</lang>
 
=={{header|Nim}}==
Program written on a single line to avoid problems with indentation. But we wanted to avoid the too easy solution consisting to read the source file. Input should be terminated by an end of file (Ctrl-D on Linux).
<lang Nim>
import strutils; let a = "import strutils; let a = $#; echo ord(stdin.readAll == a % (chr(34) & a & chr(34)) & chr(10))"; echo ord(stdin.readAll == a % (chr(34) & a & chr(34)) & chr(10))
</lang>
 
{{out}}
<pre>./narcissist
whatever...
0</pre>
<pre>
./narcissist <narcissist.nim
1</pre>
 
=={{header|PARI/GP}}==
Anonymous user