Newbie Looping/Conditional question (Bob Trabucco)
20 Nov 1997 22:41:41 -0500

          From comp.compilers

Related articles
Newbie Looping/Conditional question (1997-11-20)
| List of all articles for this month |

From: (Bob Trabucco)
Newsgroups: comp.compilers
Date: 20 Nov 1997 22:41:41 -0500
Organization: Harvey Software, Inc.
Keywords: design, question

I am a new user to lex and yacc and am enjoying using it to create my
own little language to help automate my application. All was going
well till I started looking for examples on doing a WHILE and a
IF..ELSE structure.

Is there a accepted standard way of doing these with lex and yacc???

Any sample grammers/code and/or advise would be appreciated...

Thanks in advance

[Parsing them is simple enough, are you asking how you actually run
the loops? I usually translate to an internal byte code with jump
instructions, then interpret the byte codes. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.