Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.compilers > #189

coupling LALR with a scanner?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!news.iecc.com!nerds-end
From "Armel" <armelasselin@hotmail.com>
Newsgroups comp.compilers
Subject coupling LALR with a scanner?
Date Tue, 5 Jul 2011 01:02:22 +0200
Organization les newsgroups par Orange
Lines 16
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <11-07-013@comp.compilers> (permalink)
NNTP-Posting-Host news.iecc.com
X-Trace gal.iecc.com 1310011406 20880 64.57.183.58 (7 Jul 2011 04:03:26 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Thu, 7 Jul 2011 04:03:26 +0000 (UTC)
Keywords parse, lex, question
Posted-Date 07 Jul 2011 00:03:26 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref x330-a1.tempe.blueboxinc.net comp.compilers:189

Show key headers only | View raw


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]

Back to comp.compilers | Previous | NextNext in thread | Find similar


Thread

coupling LALR with a scanner? "Armel" <armelasselin@hotmail.com> - 2011-07-05 01:02 +0200
  Re: coupling LALR with a scanner? "Armel" <armelasselin@hotmail.com> - 2011-07-07 10:28 +0200
    coupling LALR with a scanner? "Karsten Nyblad" <uu3kw29sb7@snkmail.com> - 2011-07-07 10:46 +0200
    Re: coupling LALR with a scanner? "Karsten Nyblad" <uu3kw29sb7@snkmail.com> - 2011-07-08 14:39 +0200
      Re: coupling LALR with a scanner? "Armel" <armelasselin@hotmail.com> - 2011-08-04 11:17 +0200
        Re: coupling LALR with a scanner? Paul B Mann <paul@paulbmann.com> - 2011-09-13 13:38 -0700
          Re: coupling LALR with a scanner? "Armel" <armelasselin@hotmail.com> - 2011-09-16 10:47 +0200
            Re: coupling LALR with a scanner? "Armel" <armelasselin@hotmail.com> - 2011-09-19 13:52 +0200
            Re: coupling LALR with a scanner? Paul B Mann <paul@paulbmann.com> - 2011-09-19 12:12 -0700
              Re: coupling LALR with a scanner? "Armel" <armelasselin@hotmail.com> - 2011-09-20 09:40 +0200
                Re: coupling LALR with a scanner? Chris Dodd <cdodd@acm.org> - 2011-09-23 23:59 +0100
                Re: coupling LALR with a scanner? Chris F Clark <cfc@shell01.TheWorld.com> - 2011-09-29 00:00 -0400
                Re: coupling LALR with a scanner? "Armel" <armelasselin@hotmail.com> - 2011-10-02 16:41 +0200
                Re: coupling LALR with a scanner? Chris F Clark <cfc@shell01.TheWorld.com> - 2011-10-03 11:59 -0400
                Re: coupling LALR with a scanner? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-10-03 21:08 +0000
          Re: coupling LALR with a scanner? Paul B Mann <paul@paulbmann.com> - 2011-09-17 10:38 -0700

csiph-web