|If-else and while in yacc firstname.lastname@example.org (1993-12-03)|
|From:||email@example.com (Sanjoy Mishra)|
|Date:||Fri, 3 Dec 1993 14:52:51 GMT|
I am looking for a good illustration and/or document on how
to implement if-then-else and while-loop construct using lex/yacc
type of grammars. Do I need to have stack for nesting these construct ?
I need this for a evaluator I am building. Something like
if a = 5
a = a + 1
a = a + 2
I want to do this evaluation from within yacc/lex code rather than building
any interpretive or compiling code.
Thanks for all your help.
Sanjay K. Mishra Harris Controls Division
firstname.lastname@example.org 407 John Rodes Blvd.
Phone: (407)242-4333 Melbourne, FL 32905
Return to the
Search the comp.compilers archives again.