From 81931eaba5dcd0727f33328bf4b0ff511b791990 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 31 Jul 2009 13:46:54 -0700 Subject: Refactor parser for target_symbol->components The components were being parsed for both target_symbols and cast_ops, so this change refactors that code into a single function. * parse.cxx (parser::parse_target_symbol_components): New. (parser::parse_symbol): Use the new function. --- parse.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'parse.h') diff --git a/parse.h b/parse.h index cae49b65..5587586e 100644 --- a/parse.h +++ b/parse.h @@ -112,6 +112,7 @@ struct next_statement; struct continue_statement; struct indexable; struct expression; +struct target_symbol; struct hist_op; class parser @@ -203,6 +204,8 @@ private: // nonterminals expression* parse_crement (); expression* parse_value (); expression* parse_symbol (); + + void parse_target_symbol_components (target_symbol* e); }; -- cgit