Fixing 4.x grammar to be backward compatible.

Added 3.x unit tests back to show this.
This commit is contained in:
Jonathan Turner
2012-05-17 10:14:50 -07:00
parent 4674594ee7
commit c73f16fdfe
211 changed files with 1769 additions and 86 deletions

View File

@@ -28,7 +28,7 @@ def my_fun()
assert_equal(true, my_fun.has_parse_tree());
assert_equal(false, `+`.has_parse_tree());
assert_throws("Function does not have a parse tree", []() { `+`.get_parse_tree(); } );
assert_throws("Function does not have a parse tree", fun() { `+`.get_parse_tree(); } );
auto& parsetree = my_fun.get_parse_tree();