Parse-unary-minus-expression
Parse a unary-minus-expression.
- Signature
(parse-unary-minus-expression token input)
→
(mv tree next-token rest-input)
- Arguments
- token — Guard (abnf::tree-optionp token).
- input — Guard (abnf::tree-listp input).
- Returns
- tree — Type (abnf::tree-resultp tree).
- next-token — Type (abnf::tree-optionp next-token).
- rest-input — Type (abnf::tree-listp rest-input).
If the "-" is not present, the
unary-minus-expression
in the CST is a simple wrapper around the
primary-expression;
this is analogous to how the
multiplication-expression and
additive-expression work.