The source project of this merge request has been removed.
bugfix#1016: Panic on `&&` and `||` operators
This is an attempt to fix issue#1016.
get_statement
now returns a Result<StatementVariant, Error>
and checks for start + 1 < end.
This does prevent Ion from panicking when &&
, ||
and ;
are not surrounded by commands.
Four tests related to this syntax error were added.