Create an executable for a program in an interpreted language: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: (wrong filter))
Line 354: Line 354:


If "p test" interprets something then "p -c test" produces an executable, and, unless you also specify "-norun" on the command line, invokes it immediately.<br>
If "p test" interprets something then "p -c test" produces an executable, and, unless you also specify "-norun" on the command line, invokes it immediately.<br>
Additionally pwa/p2js can be used to convert "test" into JavaScript, not yet via a command line, you'll have to manually select the file or paste the source code in, bar some programs being explictily marked as incompatible via "without&nbsp;java<wbr>script_semantics", for instance because they perform disk i/o or similar that is not permitted from within a web browser. However one thing that cannot do is create an "executable" that will run in a web browser.
Additionally pwa/p2js can be used to convert "test" into JavaScript, not yet via a command line, you'll have to manually select the file or paste the source code in, bar some programs being explictily marked as incompatible via "without javascript_semantics", for instance because they perform disk i/o or similar that is not permitted from within a web browser. However one thing that cannot do is create an "executable" that will run in a web browser.


Despite the completely misinformed protestations in the task description, there is no code that could possibly add any value to this entry, though perhaps if you are sufficiently desperate for such, you could always go and look at [[Rosetta_Code/Run_examples#Phix]], since that writes out text downloaded from the rosettacode site and runs (interprets) it, in at least five different programming languages already.
Despite the completely misinformed protestations in the task description, there is no code that could possibly add any value to this entry, though perhaps if you are sufficiently desperate for such, you could always go and look at [[Rosetta_Code/Run_examples#Phix]], since that writes out text downloaded from the rosettacode site and runs (interprets) it, in at least five different programming languages already.