Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #441

Re: push lexer?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!nerds-end
From Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com>
Newsgroups comp.compilers
Subject Re: push lexer?
Date Mon, 30 Jan 2012 23:28:09 +0000
Organization Compilers Central
Lines 34
Sender johnl@iecc.com
Approved comp.compilers@iecc.com
Message-ID <12-01-042@comp.compilers> (permalink)
References <12-01-032@comp.compilers> <12-01-036@comp.compilers>
NNTP-Posting-Host news.iecc.com
X-Trace leila.iecc.com 1327984107 98229 64.57.183.58 (31 Jan 2012 04:28:27 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Tue, 31 Jan 2012 04:28:27 +0000 (UTC)
Keywords lex
Posted-Date 30 Jan 2012 23:28:27 EST
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:441

Show key headers only | View raw


Hans Aberg <haberg-news@telia.com> writes:

> On 2012/01/17 10:28, John Levine wrote:
>>> Bison 2.5 has a "push api".
>>> http://www.gnu.org/software/bison/manual/html_node/Push-Parser-Function.html
>>>
>>> Does there exist something similar for lex of flex or does
>>> somebody know a "push scanner"?
>
>> [Not that I've ever seen.  It would be straightforward to modify
>> flex to create push lexers that work with push parsers, but so far
>> nobody's done it. -John]
>
> FYI, Flex is currently not maintained or developed.

> [That's true, but it's sitting at Sourceforge, ready for anyone who
> wants to pick it up. http://sourceforge.net/projects/flex/ -John]

There is also Reflex, maintained by Thomas Dickey at

http://invisible-island.net/reflex/reflex.html

He is most likely known as the guy behind ncurses and xterm.

I use Reflex among other things because I do use the -P flag too -- it
is broken in SourceForge Flex.


--
   Johann Oskarsson                http://www.2ndquadrant.com/    |[]
   PostgreSQL Development, 24x7 Support, Training and Services  --+--
                                                                  |
   Blog: http://my.opera.com/myrkraverk/blog/

Back to comp.compilers | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

push lexer? Detlef Bosau <detlef.bosau@web.de> - 2012-01-17 10:28 +0100
  Re: Statistics on compiling the Free Pascal compiler for Win32 Sven Barth <pascaldragon@googlemail.com> - 2012-01-17 10:00 +0100
  Re: push lexer? Hans Aberg <haberg-news@telia.com> - 2012-01-17 21:06 +0100
    Re: push lexer? Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com> - 2012-01-30 23:28 +0000

csiph-web