To override the default signature of yyparse() so that it can accept an
argument then inside %{..
.
#define YYPARSE_PARAM arg
%}
main()
{
char buffer[xxx];
yyparse(&buffer);
}
now in grammar actions use
(char *) arg
On Fri, May 1, 2009 at 9:00 AM, wrote:
> Send help-bison mailing l
Mark Redd ha scritto:
Hi everybody.
I've made my parser using Flex/Bison and it works.
My main function is
main()
{
yyparse();
}
Now my task is to develop a GUI in order to use it.
Suppose I've a char buffer[xxx] with the text i need to parse (and it is
true, because I'm using a textvi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey
I got this all working it seems. I didn't finish it but i can see how
anjuta makes it work.
So basicly you want to be just adding in your foo.l and fooparser.y as
your sources. Because when you add a new source you should notice
anjuta manages yo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey
I found this thread: (is it the same problem?)
http://ubuntuforums.org/showthread.php?t=834944
I am downloading anjuta to try it out for doing bison/flex so i'll let
you know how i get on. But i think there must be a way to do this. If
you have
>
> One quick question what do you mean that you cant use CC in anjuta? as
> in c-compiler or what?
I meant that I don't use directly "cc" command typing it in console, but
Anjuta does it for me.
I wasn't much clear and so now I'll explain better my situation.
I've done my scanner/parser and it
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey
One quick question what do you mean that you cant use CC in anjuta? as
in c-compiler or what?
This is the way your don't want to be working with your parser and
lexer. I mean you want your makefile to be re-generating your parser
and compiling if
Hello everybody.
I'm developing a didactic project using Anjuta IDE. I must use it, so I
can't use cc.
I've made my scanner/parser with flex/bison and if I type in console these
tree commands
flex foo.l
bison -d foo.y
cc lex.yy.c foo.tab.c -o foo
it works.
So I said "ok, now I could just create a