View Single Post
  #5 (permalink)  
Old 06-25-2008, 01:15 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 4,074
Last Blog:
Why Learn Data Structu...
Credits: 27
Rep Power: 45
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default 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).
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Reply With Quote

Sponsored Links