From 829198553c89ca7f2da93559c61c04ee89079ea1 Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 5 May 2005 20:31:53 +0000 Subject: * preliminaries for code generation logic 2005-05-05 Frank Ch. Eigler * parse.cxx (parse): Add helper methods. (lexer::scan, parse_assignment): Parse "<<<" operator. Fix assignment associativity. (parse_symbol): Permit function with empty arg list. (parse_global, parse_statement, parse_functiondecl): Expect unconsumed leading keyword. (parse_global): Don't use ";" termination. * parse.h: Corresponding changes. * staptree.cxx (binary_expression::resolve_types): Fix <<< type inference. (translator_output): Improve pretty-printing. (*): Add general visitors to statement/expression types. * staptree.h: Corresponding changes. Tweak symresolution_info fields. Add semantic_error class. * semtest.cxx: Adapt to this. * testsuite/parseok/two.stp, semok/*.stp: Adapt to syntax changes. --- testsuite/semok/five.stp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite/semok/five.stp') diff --git a/testsuite/semok/five.stp b/testsuite/semok/five.stp index c8b59e73..2bb656b1 100755 --- a/testsuite/semok/five.stp +++ b/testsuite/semok/five.stp @@ -1,7 +1,7 @@ -#! parsetest +#! semtest probe foo { array[1] = array[2] = 3; - statvar << value << 4; + statvar <<< value <<< 4; } -- cgit