hello, actually i want to generate rgram in yacc able to do do several operations separated by ';' and after show all the results separated by ';' again.
My code do just one operations and i couldn' t find solution to do several ones separated by ';'. I thought may be i can do a do... while but i don't know how to do it for my example. If someone can help me please.
here is my .y for just one operation
and here is my .l
thanks
---------- Post updated at 03:14 PM ---------- Previous update was at 09:06 AM ----------
no answer?? come on it's christmas soon
Last edited by joeyg; 12-21-2012 at 10:08 AM..
Reason: Please wrap commands and data with CodeTags
Hi guys,
I'm struggling with a simple but at the same time complicated problem related to yacc :wall: Maybe someone can help me with this :confused:
I'm working on a big project and it's hard for me to show the problem exactly on my code, but I will give a model of it.
Before I had this kind... (2 Replies)
How to specify the token length in a yacc file?
sample input format
<field1,data type ans,fixed length 6> followed by <field2,data type ans,fixed length 3>
Example i/p and o/p
Sample Input: "ab* d2 9o"
O/p : "Field1 Field2 "
yacc/bison grammar:
record :... (1 Reply)
Hi ,
We have developed a grammer for our domain language using lex n yacc.
I want to know is there any pre defined lex-yacc function which gets call before executing any rule (or rules).
Oue requirement is, before processing any rule ,we want to perform some specific actions ?
is there... (0 Replies)
Hi ,
I need to develop a parser which should match something like
1. text a=5 " a=20";
2. text a=..."
a=20";
3 text a=..."
a=20
b=34
c=12
";
I have used this regular expression in my Lex file to generate the tokens:
\".\s*.*\s.\" (8 Replies)