Reading parser stack

2009-04-29 Thread Mark Redd
this and so I'd like a general answer. So I can't modify my grammar and I don't want to read only the last token in parser, but sometimes I'm interested in reading the last n tokens. Thank you! Mark Redd ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: Reading parser stack

2009-04-29 Thread Mark Redd
The identifier was: %s", $2); > } > | B E D { > printf("It wasn't an identifier..."); > } > ; > > > > > > 2009/4/29 Mark Redd > >> Hello everybody, >> I would like to receive an hint about reading parser stack. >>

Without standard input

2009-04-30 Thread Mark Redd
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 textview), how can I pass it t

Can't compile bison/flex output files without cc?

2009-05-01 Thread Mark Redd
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

Re: Can't compile bison/flex output files without cc?

2009-05-01 Thread Mark Redd
ll be passed to your parser generated by bison. I don't think it's a problem with my parser. When I compile writing "cc .." in console, it works fine with the same input code! > One thing try to make sure you don't have any shift/reduce problems in > your parser t