help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change the default action for selected rules?


From: Markus Elfring
Subject: Re: How to change the default action for selected rules?
Date: Tue, 08 Oct 2013 12:51:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

> Note that {ws} + '.' + '=' is exactly the converse of {id}, so there
> is nothing else to match.

The specified abbreviations refer only partly to a converse (not exactly!). Two
characters are different in the relevant pattern.


> It's weird that SINGLE_CHARACTER is taking a char* instead of a char
> (i.e., I expect to see '*yytext', not 'yytext' there).

Thanks for your tip.

The flex message "lexer.l:36: warning, rule cannot be matched" remains.


>> http://stackoverflow.com/questions/2224373/scannerless-parser-generators
> 
> Scannerless is a fine idea, however I fear that with Bison
> you'll get bad performances.

Would you like to try out a design variant for scannerless parsing?

I imagine that this design approach would need the possibility to connect a data
type by other means than the statement "%token", wouldn't it?

Regards,
Markus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]