HAXE(1)

πŸ“¦
version 4.3.7 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– HAXE(1) πŸ’–

okay bestie, welcome to the General Commands Manual entry for haxe β€” the one and only command-line compiler for Haxe ✨ put your hair up, we're compiling.


🌈 NAME 🌈

haxe β€” compile Haxe programs to SWF, Neko, JavaScript, PHP, C++, Java, C#, Python, Lua, or HashLink. yes, ALL of those. she contains multitudes. πŸ’…


✨ SYNOPSIS ✨

haxe -main class
[-swf9|-swf|-js|-neko|-php|-cpp|-as3|-cs|-java|-python|-hl|-lua] output
[options...]

literally just: pick a target, pick an output, tell her where -main lives, and go off. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

haxe is a command-line compiler which compiles Haxe programs into Flash SWF, JavaScript, ActionScript, PHP, C++, Java, C#, Python, Lua, Neko bytecode, or HashLink bytecode. one compiler, twelve-ish vibes, no notes. πŸ‘‘

Haxe programs are syntactically similar to JavaScript β€” like, cousins energy β€” but they have a full-featured static type system with generics, compile-time macros, generalized algebraic datatypes, and more. the way that she has generics AND macros AND GADTs… main character behavior fr fr πŸ˜­πŸ’–


πŸ’… OPTIONS πŸ’…

  • -cp path β€” Add a directory to find source files. tell her where your stuff lives bestie πŸŽ€
  • -js file β€” Compile code to JavaScript file. 🌈
  • -lua file β€” Compile code to Lua file. πŸŒ™
  • -swf file β€” Compile code to Flash SWF file. the classic, the icon, the legend πŸ’«
  • -as3 directory β€” Generate AS3 code into target directory.
  • -neko file β€” Compile code to Neko Binary. 🐱
  • -php file β€” Generate PHP code into target directory.
  • -cpp file β€” Generate C++ code into target directory.
  • -cppia file β€” Generate code to Cppia file.
  • -cs directory β€” Generate C# code into target directory.
  • -java directory β€” Generate Java code into target directory. β˜•
  • -python file β€” Generate Python code as target file. 🐍
  • -hl file β€” Compile HL code as target file.
  • -xml file β€” Generate XML types description.
  • -main class β€” Select startup class. the main character of YOUR main character ✨
  • -lib library[:version] β€” Use a haxelib library. optional :version if you're feeling specific πŸŽ€
  • -D var[=value] β€” Define a conditional compilation flag.
  • -v β€” Turn on verbose mode. she will NOT stop talking and honestly? we love that for her πŸ’€πŸ’–
  • -debug β€” Add debug information to the compiled code.
  • -help β€” Show extended help information.
  • --help β€” Show extended help information. (same energy, two dashes, still iconic 🫢)
  • --help-defines β€” Print help for all compiler specific defines.
  • --help-metas β€” Print help for all compiler metadatas.
  • <dot-path> β€” Compile the module specified by dot-path. just yeet the dotted path in there, no flag needed πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

Haxe is currently maintained by the Haxe Foundation. It was originally written by Nicolas Cannasse for Motion-Twin. legends only, no cap 🫢✨


🌸 SEE ALSO 🌸

  • haxelib(1). her bestie, her ride-or-die, the library manager of the group chat πŸ’–
  • https://haxe.org/. go. click. slay. 🌐✨

and that's the whole page bestie β€” this version is from May 12, 2017, and yeah, the footer still says HAXE(1) down there in the corner, being all mysterious. πŸ’– now go compile something iconic. mwah. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from