redefinable input() unput(): want old lex/flex de-POSIXed



I'm revisiting a parser from 1991-1993, last compiled on SunOS (BSD, pre Solaris).

Where are the patches to Flex to enable redefining input() and
unput()? Surely someone's done this? Or is there some other LEX
implementation that escaped POSIX, and will compile on NetBSD
3.something?

The project is a shell, has > 1000 lines related to
completion/expansion mechanisms of input tokens which I do not want to
relearn/rewrite just for POSIX disabilities.

Sorry if this is a FAQ. Thanks for any pointers,

Douglas Ray
[I've just been reviewing the history of lex and flex for my upcoming flex&bison,
and you have a problem. The internal structure of flex is utterly unlike that of
lex, and it's hard to imagine a patch to let you redefine input and unput(). The
ancient v7 sources are available, although I suspect that making them compile will
be hard. What version of lex does opensolaris have? -John]

.



Relevant Pages

  • Re: Compiling C and C++
    ... > I am working on a language project and am using flex to generate a ... The output of flex is a C file, ... When I compile ... > looking for precompiled header directive. ...
    (microsoft.public.dotnet.languages.vc)
  • [HPADM] RE: mod_ssl question
    ... To recap, I was having a ... problem getting mod_ssl to compile in as it was looking for flex and HP only ... Several people mentioned downloading flex from the GNU ( ...
    (HP-UX-Admin)
  • Re: gcc-4.0: gcc4 fails to compile working FLex 2.5.31
    ... When I compile Flex 2.5.31 all is fine with version 3 of gcc. ... AC.x:131: unknown error processing section 1 ...
    (Ubuntu)
  • Re: Lispers first look at Haskell
    ... it has constraints (aka Cells). ... Can compile to JS or DHTML. ... Or I might just do Flex, get something Interwebby on the resume while I am at it. ...
    (comp.lang.lisp)
  • Re: [SLE] Install source
    ... In other linux we are able to compile lex.yy.c with command ... routine which calls the lexer. ... The problem may be related to differing flex versions on different ... i believe that a collect2 error is a link error, ...
    (SuSE)