Right(Chunk(For(i))) Right(Chunk(While(true))) Right(Chunk(Identifier(foo))) === Should fail with meaningful error === Left(Fatal(UnexpectedEndOfInput(List()))) Left(Fatal(UnexpectedEndOfInput(List()))) Left(Fatal(Failure(List(),3,Unexpected token: LitBool(true)))) Left(Fatal(Failure(List(),3,Unexpected token: Ident(foo)))) Left(Fatal(UnexpectedEndOfInput(List()))) Left(Fatal(UnexpectedEndOfInput(List()))) Left(Fatal(Failure(List(),2,Unexpected token: Ident(i), Expected: LParen))) Left(Fatal(Failure(List(),2,Unexpected token: LitBool(true), Expected: LParen)))