diff options
author | Josh Stone <jistone@redhat.com> | 2009-07-31 13:46:54 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-07-31 17:08:07 -0700 |
commit | 81931eaba5dcd0727f33328bf4b0ff511b791990 (patch) | |
tree | 398784156586dfe4bb1de23f09d1530c3f664e54 /parse.h | |
parent | 8eb285ac4ec3a34b29ebf20fde0e28cc647d940f (diff) | |
download | systemtap-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); }; |