PAS2JS-3.2.2(1) | Free Pascal Compiler | PAS2JS-3.2.2(1) |
pas2js-3.2.2 - Pascal to JavaScript translator based on Free Pascal Compiler (FPC)
pas2js-3.2.2
Pas2JS Compiler version 1.5.1 [2024/01/05] for Linux i386 Copyright © 2019 Free Pascal team.
Put + after a boolean switch option to enable it, - to disable it
-iSO : Write compiler OS
-iSP : Write compiler host processor
-iTO : Write target platform
-iTP : Write target processor
-Fe<x>: Redirect output to file <x>. UTF-8 encoded.
-FE<x>: Set main output path to <x>
-Fi<x>: Add <x> to include paths
-FN<x>: add <x> to namespaces. Namespaces with trailing - are removed.
-Fu<x>: Add <x> to unit paths
-FU<x>: Set unit output path to <x>
-Je<x>: Encode messages as <x>.
-Jeconsole: Console codepage. This is the default.
-Jesystem : System codepage. On non Windows console and system are the
-Ji<x>: Insert JS file <x> into main JS file. E.g. -Jirtl.js. Can be given
-Jmsourceroot=<x>: use x as "sourceRoot", prefix URL for source file
-Jmbasedir=<x>: write source file names relative to directory x, default
-Jminclude: include Pascal sources in source map.
-Jmabsolute: store absolute filenames, not relative.
-Jmxssiheader: start source map with XSSI protection )]}', default.
-Jm-: disable generating source maps
-Jo<x>: Enable or disable extra option. The x is case insensitive:
-JoSearchLikeFPC: search source files like FPC, default: search case
-JoUseStrict: add "use strict" to modules, default.
-JoCheckVersion-: do not add rtl version check, default.
-JoCheckVersion=main: insert rtl version check into main.
-JoCheckVersion=system: insert rtl version check into system unit init.
-JoCheckVersion=unit: insert rtl version check into every unit init.
-JoRTL-<y>=<z>: set RTL identifier y to value z. See -iJ.
-Jr<x> Control writing of resource string file
-Jrnone: Do not write resource string file
-Jrunit: Write resource string file per unit with all resource strings
-Jrprogram: Write resource string file per program with all used
-Jr<x> Control writing of linked resources
-JRnone: Do not write resources
-JRjs: Write resources in Javascript structure
-JRhtml[=filename] : Write resources as preload links in HTML file
-Jpcmd<command>: Run postprocessor. For each generated js execute command
-Ju<x>: Add <x> to foreign unit paths. Foreign units are not compiled.
-JU: This pas2js does not support PCU files
-MDelphi: Delphi 7 compatibility mode
-MObjFPC: FPC's Object Pascal compatibility mode (default)
-NS<x> : obsolete: add <x> to namespaces. Same as -FN<x>
-Oo<x>: Enable or disable optimization. The x is case insensitive:
-OoEnumNumbers[-]: write enum value as number instead of name. Default
-OoRemoveNotUsedPrivates[-]: Default is enabled
-OoRemoveNotUsedDeclarations[-]: Default enabled for programs with -Jc
-Pecmascript5: default
-Pecmascript6
-SIcorba: CORBA interface
-Tbrowser: default
-Tnodejs : add pas.run(), includes -Jc
-vm<x>,<y>: Do not show messages numbered <x> and <y>.
Environment variable PAS2JS_OPTS is parsed after default config and before
Macros: Format is $Name, $Name$ or $Name()
The full documentation for pas2js-3.2.2 is maintained as a Texinfo manual. If the info and pas2js-3.2.2 programs are properly installed at your site, the command
should give you access to the complete manual.
January 2024 | pas2js-3.2.2 |