Native shebang: Difference between revisions
Content added Content deleted
(Added Forth) |
(Added program to Forth) |
||
Line 436: | Line 436: | ||
<lang>: #! [COMPILE] \ ; immediate</lang> |
<lang>: #! [COMPILE] \ ; immediate</lang> |
||
Some Forth compilers - like 4tH or Gforth - support this functionality out of the box. |
Some Forth compilers - like 4tH or Gforth - support this functionality out of the box. |
||
This example program works as advertised: |
|||
<lang>#! /usr/local/bin/4th cxq |
|||
argn 1 ?do i args type space loop cr |
|||
</lang> |
|||
=={{header|Free Pascal}}== |
=={{header|Free Pascal}}== |
||
Since FPC (FreePascal compiler) version 2.6.0 the distribution – e.g. the Debian or FreeBSD packages <tt>fpc-utils</tt> – come with the program <tt>instantfpc(1)</tt>, or <tt>ifpc(1)</tt> for short. |
Since FPC (FreePascal compiler) version 2.6.0 the distribution – e.g. the Debian or FreeBSD packages <tt>fpc-utils</tt> – come with the program <tt>instantfpc(1)</tt>, or <tt>ifpc(1)</tt> for short. |