output's target configurable by string option with the same name as output's
default options: --run true --output @stdout (configured in options::init_defaults())
bool option is true if: true, t, 1, on, enabled or if no value provided
disabling (making false) option (--run for example) can be alternatively done by: --disable-run, --no-run or --dont-run
OUTPUTS:
removed temporary files (I can re-add if required)
possible targets: @null, @stdout, @stderr, @name, @buffer, filename.
If no value provided enabled output targets @stdout
option --name can be used for naming all outputs targeting @name. it adds unique extension to each output.
Example: ./tml --name test123 -o @name -ast-html @name -t @name < program.tml
will save output into test123.out.tml, HTML AST into test123.ast.html and transformed program into test123.trans.tml
output streams and their default extensions are - created in driver::init():
output (.out.tml)
transformed (.trans.tml)
xsb (.P)
swipl (.pl)
souffle (.souffle)
ast (.ast.tml)
ast-json (.ast.json)
ast-xml (.ast.xml)
ast-html (.ast.html)
AST:
fixed XML/HTML iterator out of bounds
TML (--ast): each ast node type has its own relation now
OPTIONS:
options::setup()
--run true --output @stdout
(configured inoptions::init_defaults()
)--run
for example) can be alternatively done by:--disable-run
,--no-run
or--dont-run
OUTPUTS:
@null
,@stdout
,@stderr
,@name
,@buffer
,filename
. If no value provided enabled output targets@stdout
--name
can be used for naming all outputs targeting@name
. it adds unique extension to each output. Example:./tml --name test123 -o @name -ast-html @name -t @name < program.tml
will save output intotest123.out.tml
, HTML AST intotest123.ast.html
and transformed program intotest123.trans.tml
driver::init()
:AST:
--ast
): each ast node type has its own relation now