Skip to content

Pre-release 0.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@byxor byxor released this 09 Apr 13:52
· 11 commits to master since this release

Small stability/usability improvements.

  • Fixed else statement bytecode for THPS4.
  • Renamed command-line argument to -showDecompiledRoq.
  • Added error messages for syntax errors (but not everything is covered yet).
    • e.g. ERROR example.ns(line 5) - Incomplete assignment
  • Added timeout when roq decompiler goes into infinite loop.
  • Added timeout when neverscript compiler goes into infinite loop (due to unforeseen bugs/unimplemented features).
     __                    __           _       _
  /\ \ \_____   _____ _ __/ _\ ___ _ __(_)_ __ | |_
 /  \/ / _ \ \ / / _ \ '__\ \ / __| '__| | '_ \| __|
/ /\  /  __/\ V /  __/ |  _\ \ (__| |  | | |_) | |_
\_\ \/ \___| \_/ \___|_|  \__/\___|_|  |_| .__/ \__|
                                         |_|
           The QB programming language.
----------------------------------------------------

Release 0.8

Usage of ns:

COMPILATION:
    -c                 (required string)  Specify a file to compile (.ns).
    -o                 (optional string)  Specify the output file name (.qb).
    -targetGame        (optional string)  Specify which game to target (defaults to
 "thug2").
    -removeChecksums   (optional flag)    Removes checksum information from end of
output.
    -showHexDump       (optional flag)    Display the compiled bytecode in hex form
at.
    -showDecompiledRoq (optional flag)    Display output from roq decompiler (roq.e
xe must be in your PATH).

PRE GENERATION:
    -p                 (required string)  Specify a pre spec file (.ps).
    -showHexDump       (optional flag)    Display the pre bytes in hex format.

DECOMPILATION (very incomplete):
    -d                 (required string)  Specify a file to decompile (.qb).
    -o                 (optional string)  Specify the output file name (.ns).
    -showCode          (optional flag)    Display the decompiled code as text.