D
DennisNedry
Any general ideas on techniques for creating parsers for algebraic and
linear equations?
linear equations?
DennisNedry said:Any general ideas on techniques for creating parsers for algebraic and
linear equations?
DennisNedry said:Any general ideas on techniques for creating parsers for algebraic and
linear equations?
Ivan said:Some C++ (or C) tools that can help generate parsers include:
- Flex http://www.gnu.org/software/flex/
A good old proven solution for generating parsing code/tables.
- Boost::spirit http://www.boost.org/libs/spirit/
A template based solution (no separate code generation)
DennisNedry said:Okay. Is there a more efficient way to parse this data (in C++) than
doing character comparisons on the entire user input such as:
for(char='A';char<='Z';char++){
for(i=0;user_input!=NULL;i++){
if(user_input==char){
and then dumping the matches into a variable in a structure?
Sorry if this is a dumb question, I'm relatively new to C++.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.