[Libre-soc-bugs] [Bug 671] convert spec pseudocode to use XLEN width

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Aug 22 20:40:25 BST 2021


--- Comment #14 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #13)
> usually unary minus is handled as a separate operator...
> See JavaScript's syntax as an example:
> https://262.ecma-international.org/#sec-unary-operators
> I can help out with this bug tomorrow, busy today.

ohh, a separate item in the BNF?

so, atom would be:

expr |
number |
negnumber |

or.. oh wait, no i got it.  like:

unary =
  | !x

etc, you would also have:


in that list.

ok yeah, then that would also work for "EXPR - - NUMBER"

it also i think solves the case of not matching against EXPR NUMBER

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list