Mathematical Expression Builder(parser)
-
I need a simple Mathematical Expression Builder(parser). Does anybody know about some free source code (C++, MFC) for that. What is the best way of making an expression parser. can i use regular expressions? what would be the best suggestion. I prefer to provide intellisence like Visual Studio or Visual Assist while typing an expression, how that can be provided? any code for that? @!$h@
-
I need a simple Mathematical Expression Builder(parser). Does anybody know about some free source code (C++, MFC) for that. What is the best way of making an expression parser. can i use regular expressions? what would be the best suggestion. I prefer to provide intellisence like Visual Studio or Visual Assist while typing an expression, how that can be provided? any code for that? @!$h@
-
What about using Lex and Yacc thing? @!$h@
-
What about using Lex and Yacc thing? @!$h@
I don't know how to use those tools properly, but you could use them also. The article that I pointed you to, has it's implementation based on mathematical expressions. After reading it, you should be able to write your own expression parser based on the same theory. It doesn't matter wheter you want a mathematical expression parser or a regular expression parser, the idea of parsing is the same. Only the implementation is different.
A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.
-
I don't know how to use those tools properly, but you could use them also. The article that I pointed you to, has it's implementation based on mathematical expressions. After reading it, you should be able to write your own expression parser based on the same theory. It doesn't matter wheter you want a mathematical expression parser or a regular expression parser, the idea of parsing is the same. Only the implementation is different.
A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.
Thanks :) @!$h@