summaryrefslogtreecommitdiffstats
path: root/parse.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-07-31 13:46:54 -0700
committerJosh Stone <jistone@redhat.com>2009-07-31 17:08:07 -0700
commit81931eaba5dcd0727f33328bf4b0ff511b791990 (patch)
tree398784156586dfe4bb1de23f09d1530c3f664e54 /parse.h
parent8eb285ac4ec3a34b29ebf20fde0e28cc647d940f (diff)
downloadsystemtap-steved-81931eaba5dcd0727f33328bf4b0ff511b791990.tar.gz
systemtap-steved-81931eaba5dcd0727f33328bf4b0ff511b791990.tar.xz
systemtap-steved-81931eaba5dcd0727f33328bf4b0ff511b791990.zip
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.
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h3
1 files changed, 3 insertions, 0 deletions
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);
};