Re: Thread safe lexical scanner generator

ptjm@interlog.com (Patrick TJ McPhee)
15 Apr 1998 23:25:49 -0400

          From comp.compilers

Related articles
Thread safe lexical scanner generator julian@computer.org (1998-04-13)
Re: Thread safe lexical scanner generator ptjm@interlog.com (1998-04-15)
| List of all articles for this month |

From: ptjm@interlog.com (Patrick TJ McPhee)
Newsgroups: comp.compilers,comp.programming.threads
Date: 15 Apr 1998 23:25:49 -0400
Organization: Crampton Vinegar Works
References: 98-04-040
Keywords: lex, parallel

<julian@computer.org> wrote:
% Before I try to hand craft a lexical scanner, just wondering, is there
% any lexical scanner generator that I can use in a multi-threaded
% program (for example, two thread lexical scanning at the same time)?


I believe that the current version of flex has an option to generate
re-entrant scanners. I have version 2.4, which is quite old, on this
machine, and the man page says the -+ option, which generates C++
classes instead of a call to yylex, is fully re-entrant.
--


Patrick TJ McPhee
East York Canada
ptjm@interlog.com
--


Post a followup to this message

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