coupling LALR with a scanner?

"Armel" <armelasselin@hotmail.com>
Tue, 5 Jul 2011 01:02:22 +0200

          From comp.compilers

Related articles
coupling LALR with a scanner? armelasselin@hotmail.com (Armel) (2011-07-05)
Re: coupling LALR with a scanner? armelasselin@hotmail.com (Armel) (2011-07-07)
coupling LALR with a scanner? uu3kw29sb7@snkmail.com (Karsten Nyblad) (2011-07-07)
Re: coupling LALR with a scanner? uu3kw29sb7@snkmail.com (Karsten Nyblad) (2011-07-08)
Re: coupling LALR with a scanner? armelasselin@hotmail.com (Armel) (2011-08-04)
Re: coupling LALR with a scanner? paul@paulbmann.com (Paul B Mann) (2011-09-13)
Re: coupling LALR with a scanner? armelasselin@hotmail.com (Armel) (2011-09-16)
[9 later articles]
| List of all articles for this month |

From: "Armel" <armelasselin@hotmail.com>
Newsgroups: comp.compilers
Date: Tue, 5 Jul 2011 01:02:22 +0200
Organization: les newsgroups par Orange
Keywords: parse, lex, question
Posted-Date: 07 Jul 2011 00:03:26 EDT

Hi,


I am exploring the possibility of choosing between several lexers depending
on the current state of an LALR parser (i.e. if a state can accept
productions such as A => A . 'a' b, B => . 'c', then the selected lexer will
accept (at least) 'a' and 'c', for rightmost positions the lookahead symbols
would be acceptable as well)


Is there any literature about this? or example? I searched around for
scannerless/lexerless parsing but could not make my mind.


Regards
Armel Asselin
[The usual approach is to set flex start states in your yacc or bison parser.
-John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.