Try modifying/creating your own!
Each rule consists of two parts: template
and output
.
template is what the transpiler is looking for, it describes what your rule looks like. here is an example:
array
and index
, using the synyax {variableName}
. to put these variables into action you will need the second part of the rule, the output
.output
is a normal javascript function that recieves an object containing all variables that the transpiler found, it can be a good idea to use destructuring here.return
of this function is what the compiler is going write to your code. if for any reason you think that something went wrong and you don't want to process this code, ie: one variable is undefined or it's conflicting with a different rule, just return false
.#
sign.