There's a simple arithmetic grammar found in PEGjs, that I want to expand its output to 2 or 3 lines each containing expression results in Decimal, Hex and Binary format.
Example:
input: (3*(5+8))
output should be: 39\n27\n00100111
I searched for detail on PEG.js, but couldn't find any info on that.
Any help appreciated.
*Also it would be nice to have multiple lines in input too, with different outputs in multiple lines too.