Commit f6851748 authored by Emile Trotignon's avatar Emile Trotignon

Tests now integrated - unwanted printing

parent 04b3f4c5
......@@ -31,13 +31,16 @@
%}
%start<AST.t> program
%start<AST.definition> definition
%start<AST.definition> definition_eof
%%
program:
| definitions = list(located(definition)) EOF { definitions }
| e=located(error) { Error.error "parsing" e.position "Syntax error." }
definition_eof:
| def = terminated(definition, EOF) { def }
definition:
| val_def = value_definition { val_def }
| type_def = define_type { type_def }
......
Line 1, characters 0-3: Error (parsing)
Syntax error.
Line 2, characters 15-16: Error (parsing)
Syntax error.
Line 1, characters 11-12: Error (parsing)
Syntax error.
Line 1, characters 0-2: Error (parsing)
Syntax error.
Line 1, characters 4-56: Error (parsing)
Syntax error.
let youShouldNeverUseThis_Ugly_Way_of_Identifying_THINGS = 0
\ No newline at end of file
Line 1, characters 4-5: Error (during lexing)
unexpected character.
let this_is_far_better_way_to_name_things_2_the_revenge = 0
\ No newline at end of file
Line 1, characters 12-13: Error (parsing)
Syntax error.
fun fine (x, y) = 0
let fine = 0
\ No newline at end of file
Line 1, characters 21-22: Error (parsing)
Syntax error.
Line 1, characters 23-23: Error (parsing)
Syntax error.
let ill_typed = (ref 0 * 1)
\ No newline at end of file
Line 3, characters 2-2: Error (parsing)
Syntax error.
let main = let x = (ref 0) ; 0
\ No newline at end of file
Line 2, characters 23-23: Error (parsing)
Syntax error.
let main = let y = (ref (\ x -> x)) ; y
\ No newline at end of file
Line 2, characters 8-9: Error (parsing)
Syntax error.
let main = let y = (ref "foo") ; ref "bar"
\ No newline at end of file
Line 2, characters 4-5: Error (parsing)
Syntax error.
Line 3, characters 0-0: Error (parsing)
Syntax error.
let main = (ref 0) := 1
\ No newline at end of file
Line 2, characters 2-4: Error (parsing)
Syntax error.
Line 2, characters 4-6: Error (parsing)
Syntax error.
let main = \ x -> (x := 0)
\ No newline at end of file
Line 2, characters 8-11: Error (parsing)
Syntax error.
let main = switch (you) { | (me : int) -> me }
\ No newline at end of file
Line 2, characters 4-5: Error (parsing)
Syntax error.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment