Consider, as examples, the syntactically malformed input strings q)
, q+
, p^
, p'
, (p
, (p&(q)
, (p+q&)
, and (+q)
. The following error messages are generated.
q)
contains a parenthesis.
q+
has a reserved logical symbol.
p^
has the reserved symbol ^
.
p'
has the reserved symbol '
.
(p
has no matching closing parenthesis.
(p&(q)
has one or more unmatched parentheses.
(p+q&)
has no matching right operand for &.
(+q)
has no matching left operand for +.