File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -43,20 +43,3 @@ let%expect_test _ =
4343 (Bin_list (Variable x) ((+ - 1 (Number 10 ))))))) | }];
4444 print_parsed " 5 + #some comment\n 5;" ;
4545 [% expect {| (Expr (Function (Prototype " " () ) (Bin_list (Number 5 ) ((+ - 1 (Number 5 )))))) | }];
46- print_parsed " def test(x) 1+2+x;" ;
47- [% expect {|
48- (Def
49- (Function (Prototype test (x))
50- (Bin_list (Number 1 ) ((+ - 1 (Number 2 )) (+ - 1 (Variable x)))))) | }];
51- print_parsed " def test(x) (1+2+x)*(x+(1+2));" ;
52- [% expect {|
53- (Def
54- (Function (Prototype test (x))
55- (Bin_list (Bin_list (Number 1 ) ((+ - 1 (Number 2 )) (+ - 1 (Variable x))))
56- ((* -1
57- (Bin_list (Variable x)
58- ((+ -1 (Bin_list (Number 1) ((+ -1 (Number 2)))))))))))) |}];
59- print_parsed "foo(2);";
60- [%expect {| (Expr (Function (Prototype "" ()) (Call foo ((Number 2))))) |}];
61- print_parsed "extern sin(x);";
62- [%expect {| (Extern (Prototype sin (x))) |}];
You can’t perform that action at this time.
0 commit comments