Roadmap

Proposals

Debug token

Add a built-in invocation that prints the values of all arguments, useful for debugging macro definitions. Consider the name <dbg>.

Error token

Add a built-in invocation that causes an error, useful for enforcing constraints in macro definitions. Consider the name <err>. Take a list/string as the first argument, used as the error message, and all following arguments are printed like with the debug token.

Multiple output formats

Think about how to allow multiple formats to be output in the same run, to save from having to re-assemble a project multiple times.

Better source attribution for expression errors

Values on an expression stack are already source-tracked by Torque, but the source information is never used in error messages, because ‘synthetic’ values have no direct source (values generated by an operator). To fix this, we can attribute synthetic values to the operator that created them.

With this change, type errors in expressions can be directly attributed to the value that triggered them.

Return lists from expressions

This would allow for the creation of a <con> concatenation operator for concatenating lists and/or integers into a list value.