parsing multiple data member declarations in C++ with Perl regular expressions 
Author Message
 parsing multiple data member declarations in C++ with Perl regular expressions

Multiple data member declarations separated  by commas are often
used in C++ code, such as :

int a,b,c;

Though many systems for generating documentation or
reverse-engineering C++ code (e.g. Rational Rose : Warning: Multiple
data member declarations
separated by commas are not supported.)
don't support multiple data member declarations separated by commas.

Unless you know a tool that could handle this (i.e. produce valid c++
header files for these systems), could you give the regular
expressions that would
recognize multiple data member declarations, split them and output
a valid c++ header file ? I'm almost sure this is feasible with a Perl
script

Thank you



Tue, 22 Nov 2005 17:30:55 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Parsing C++? Grabbing function declarations

2. Perl-style regular expressions for C/C++?

3. Is there a perl style regular expression library(class) for C and C++

4. How to use regular expression in C++?

5. regular expression for matching C++

6. How to check C++ in regular expression?

7. Regular expression: multiple line

8. regular expression function to find multiple strings

9. OT: regular expression matching multiple occurrences of one group

10. Matching multiple groups / Regular expression question

11. Need multiple matches in a regular expression

12. Multiple line regular expressions

 

 
Powered by phpBB® Forum Software