From 50cc7cd57e341d027c03d1c54db2b8dccf036111 Mon Sep 17 00:00:00 2001 From: Serguei Makarov Date: Mon, 23 Jul 2012 13:54:40 -0400 Subject: [PATCH] Cleanup comments, consistent use of 'atword' terminology. --- parse.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/parse.cxx b/parse.cxx index c77f31164..23a142eca 100644 --- a/parse.cxx +++ b/parse.cxx @@ -112,7 +112,7 @@ private: const token* expect_kw (string const & expected); const token* expect_number (int64_t & expected); // const token* expect_ident (string & target); // no longer used - const token* expect_ident_or_at_op (string & target); + const token* expect_ident_or_atword (string & target); const token* expect_ident_or_keyword (string & target); bool peek_op (string const & op); bool peek_kw (string const & kw); @@ -294,9 +294,6 @@ parser::print_error (const parse_error &pe) cerr << _("\tsaw: ") << input_name << " EOF" << endl; } - // XXX: make it possible to print the last input line, - // so as to line up an arrow with the specific error column - num_errors ++; } @@ -784,7 +781,7 @@ parser::expect_number (int64_t & value) const token* -parser::expect_ident_or_at_op (std::string & target) +parser::expect_ident_or_atword (std::string & target) { const token *t = next(); @@ -2691,7 +2688,7 @@ const token * parser::parse_hist_op_or_bare_name (hist_op *&hop, string &name) { hop = NULL; - const token* t = expect_ident_or_at_op (name); // TODOXXX + const token* t = expect_ident_or_atword (name); if (name == "@hist_linear" || name == "@hist_log") { hop = new hist_op; -- 2.43.5