Some hints: 1) Never email Linus Torvalds with newbie questions, especially when they aren't related to the Linux kernel. 2) For parsing, lookup "finite state machines" and the C function strtok() 3) For evaluation, lookup "binary (or N-ary) tree". You will also want to know about "stacks" and "prefix, postfix and infix notation". Also, there is almost certainly source code available on the net that will deal with arbitrary logical expressions.
- C compilation principle Bill cheng
- Re: C compilation principle Glynn Clements
- David Rysdam