Releases: cpp-script-lang/sasm
Version 0.3.0
Added support for multi-word arguments, so instead of typing
load Hello
printps
load 32
printpc
load World!
printpsyou can write that
load Hello World!
printpsChanged behaviour of options -v and --verbose; rather than couting logs, they are couting tabulate::Table object.
Unfortunately, I don't know why, comments aren't displayed in that tables.
And I saw that not only print* and scan* don't work on GNU/LInux (I saw that inc doesn't work too).
Version 0.2.0-alpha+merged
Merged versions 0.1.0-beta+test and 0.1.0-beta+noverbose.
Added:
- commandline options
-vand--verbosewhich logs AST-like information like earlier+testversions. .gitattributeswhich colours*.sasmfiles as ones with.asmand.Sextensions.
In version beta logs colouring will be added and new lines (maybe all logs will be buffered and couted before or after whole output). between them and programs' output for readability. Also, options -l and --log-to-file.
In beta ready binaries will be added, too.
In further future also --defaults (xor --file and -f) option(s) with default options (as JSON), default defaults file (in .sasm directory located somewhere, for now I don't know where), and shebang feature, will be added.
In much further future, there will be also package manager with packages in the .sasm dir and .import directive with .smod files (SASM Module files), so also the call instruction.
Version 0.1.0-beta+test
Corrected indentation in logs.
Added possibility of empty line.
Version 0.1.0-beta+noverbose
Logging AST-like information disabled.
Version 0.1.0-alpha+test
This version additionally prints something similar to AST (not for all instructions). Comments mustn't be at the same line as instructions.
Example
; Add 5 and 5
load 4
inc
load 5
addwill print:
Interpreting file: examples\add-5-and-5.sasm
Interpreting line: ; Add 5 and 5 with number: 1
Mnemonic: COMMENT
Interpreting line: load 4 with number: 2
Mnemonic: load
Arg: 4
Interpreting line: inc with number: 3
Mnemonic: inc
Interpreting line: load 5 with number: 4
Mnemonic: load
Arg: 5
Interpreting line: addi with number: 5
Mnemonic: addi
Version 0.1.0-alpha+noverbose.
This version doesn't log any AST-like data.
Instructions added:
printcprintpc(no, it doesn't print any PC info, just prints some chars and pops it)