[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(No subject)
From: |
davidfranks |
Subject: |
(No subject) |
Date: |
Wed, 23 Jan 2002 12:27:08 +0000 |
Hi all
I am new to Bison and I am trying to write a parser that will insert text in
the statement part of an if. I have read the bison user manual but don't seem
to be making any progress.
Example
***************************************************
if (x>u)
max =4;
else
max =5;
***************************************************
I want the code to look like the following
***************************************************
if (x>u)
{
print "x greater than u";
max =4;
}
else
{
print "x less than u";
max =5;
}
***************************************************
I am using the flex and bison standard grammar files.
Could someone point me in the right direction and as I said at the top I am new
to Bison!
Thanks
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- (No subject),
davidfranks <=