OPTIONAL

Runs a rule, and if it fails, succeeds anyway without moving through the input. opt is the short name.

>> parse "ab" [opt "x" "a" "b"]
== "b"

When the rule fails, the result is a VOID!, not NULL as with TRY.

See Also

  • TRY
  • SOME, with which opt some means “zero or more”