Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json_of_syntax: handle optional operands, trim constants
Update json_of_syntax to handle optional operands and trim constants. Previously, optional operands were displayed inline with other operands, causing ambiguity in the syntax. ``` vd,vs2,vs1vm ``` Optional operands are now enclosed in square brackets for clarity. ``` vd,vs2,vs1[,vm] ``` Operands containing constants such as `hex_bits_8(uimm,0b000)` were included in the syntax output as: ``` rdc,rsc,uimm,0b000 ``` Constants are now trimmed resulting in a more readable output: ``` rd,rsc,uimm ```
- Loading branch information