PPaste!

Output

Home - All the pastes - Authored by Thooms

Raw version

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)))