[fpc-pascal] Any command line interpreters for Free Pascal?
Andrew Pennebaker
andrew.pennebaker at gmail.com
Sun Oct 16 02:53:44 CEST 2011
Barth:
Yes, there is a distinction to be made between an interpreted environment,
say, GHCi, and instantfpc, which is simply a compiler wrapper just advanced
enough to let you ./ your Pascal programs. With a little more work,
instantfpc could become an interpreted environment.
I'll see if I can patch the fpc code to add shebangs as comments.
Cheers,
Andrew Pennebaker
www.yellosoft.us
On Sat, Oct 15, 2011 at 4:52 PM, Sven Barth <pascaldragon at googlemail.com>wrote:
> On 15.10.2011 19:56, Andrew Pennebaker wrote:
>
>> Yes, software bloat is to be avoided. In the simplest terms, I'm asking
>> for fpc to consider shebangs as comments. That little syntactical
>> addition wouldn't bloat fpc by much at all, but it would allow the same
>> code to be compiled by fans of fpc, and interpreted by fans of instantfpc.
>>
>
> You are aware that InstantFPC isn't interpreting the source file in the
> sense of e.g. a Basic interpreter? It only strips the shebang and invokes
> FPC with the parameters passed in the shebang. Afterwards the resulting
> executable is started using the parameters that were passed when invoking
> the script.
>
> If you still want FPC to ignore a shebang on the first line, you are always
> welcome to provide a patch and then it can be discussed whether this patch
> should be included in trunk.
>
> Regards,
> Sven
>
> ______________________________**_________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111015/e832e371/attachment.html>
More information about the fpc-pascal
mailing list