Re: Print expected tokens in yyerror function.

2008-03-29 Thread Claudio Saavedra
t you get really good quality error diagnosis, and also most of the times you can even diagnosis correctly the corrections for multiple errors that occur in close proximity. I'm on the task of putting online my git's clone of bison's repository, where I implemented BF. Claudio --

Re: Print expected tokens in yyerror function.

2008-03-29 Thread Claudio Saavedra
El sáb, 29-03-2008 a las 13:05 +0100, Hans Aberg escribió: > On 29 Mar 2008, at 12:50, Claudio Saavedra wrote: > >> It prints something like that (or used to), but the LALR(1) that > >> Bison uses compacts the statements in a way that when an error token > >> ap

Re: Print expected tokens in yyerror function.

2008-03-29 Thread Claudio Saavedra
shifts take place, can still be detected and properly diagnosed and fixed. This do works with Bison's LALR algorithm and table compactation. I have a bison skeleton that works this way, and I'll be publishing it pretty soon. Greetings, Claudio -- Claudi

Re: building from CVS

2008-02-19 Thread Claudio Saavedra
; about translations. Removing data/push.c from runtime-po/POTFILES.in should help. Claudio -- Claudio Saavedra <[EMAIL PROTECTED]> ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: A problem of a name parser

2008-02-17 Thread Claudio Saavedra
is%d\n",$1,$3 );} > ; > %% > void yyerror(const char*s) > { > fprintf(stderr, "%s\n", s); > } > int main() > { > return yyparse(); > } > ___ > help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison > -- Claudio Saavedra <[EMAIL PROTECTED]> ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: Recognize Stings Tokens.

2007-12-22 Thread Claudio Saavedra
nner is accepting strings in ^[a-z]+ as valid but ignoring them, given that there is no action associated with that rule. Check the flex manual for more details on how to use it: http://www.gnu.org/software/flex/manual You can also ask in the comp.compilers usenet group, as this is slightly off-

Re: Recognize Stings Tokens.

2007-12-22 Thread Claudio Saavedra
es the yylex function required in bison. Claudio -- Claudio Saavedra <[EMAIL PROTECTED]> ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: AW: AW: Segmentation Fault in yyparse() method

2007-11-15 Thread Claudio Saavedra
f you are using flex, then you probably need to check how this function is defined in the flex generated code. Claudio -- Claudio Saavedra <[EMAIL PROTECTED]> ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: Segmentation Fault in yyparse() method

2007-11-13 Thread Claudio Saavedra
El mar, 13-11-2007 a las 17:07 +0100, Jonas Stahl escribió: > > yychar = YYLEX; <--- Most likely a bug in your yylex () implementation. You should debug it there. Claudio -- Claudio Saavedra <[EMAIL PROTECTED]> ___ help-bis

Re: Multitype support in bison

2007-10-13 Thread Claudio Saavedra
El sáb, 13-10-2007 a las 11:06 +0200, [EMAIL PROTECTED] escribió: > It's a typical homework assignment for people > studying computer science. Hm, and maybe he is actually doing such a homework? :-) Claudio -- Claudio Saavedra <[E

Re: State of the LR(1) and

2007-07-30 Thread Claudio Saavedra
implementation as my dissertation topic at my university. I'll be working on this offline[1] and will contribute back my results once I've defended them (hopefully by the end 2007-beginning 2008). Claudio [1] Expect a lot of questions starting in August :-) -- Claudio

Re: Bug in gnulib-tools prevents bison from bootstrapping

2007-06-22 Thread Claudio Saavedra
oblem (Mac OS X) I mentioned. So let's hope > somebody checks out, so it is not a new bug. I ran into Fernando's bug some weeks ago when trying to bootstrap a CVS build of bison. I tried to solve it your way but it was clearly a different issue, which I had no time to debug. Claudio