Re: parse an expression in c
What you are looking at creating is basically a compiler, where it has to parse the Clipper language and translate it into the corresponding SQL. You may be able to do it with Regular Expressions, or with LEX & YACC (I'm not familiar with them). One thing that stands out is the fact that there are some definite assumptions that would have to be built into the process (such as the join fields).
|