Undocumented features of lex

colin@array.uucp (Colin Plumb)
Tue, 2 Jul 1991 18:28:06 -0400

          From comp.compilers

Related articles
Undocumented features of lex colin@array.uucp (1991-07-02)
| List of all articles for this month |

Newsgroups: comp.compilers
From: colin@array.uucp (Colin Plumb)
Keywords: lex
Organization: Array Systems Computing, Inc., Toronto, Ontario, CANADA
Date: Tue, 2 Jul 1991 18:28:06 -0400

I recall reading of someone who fought lex when he wanted to use start
conditions and wanted to include the initial condition (returned to
with "BEGIN 0;") as a condition. Well, <0> doesn't work, but
<INITIAL> does. You can also use INITIAL in a BEGIN statement.


It's not documented in the copy of "lex - a Lexical Analyzer Generator"
that's in the Sun manual in front of me, so presumably it's not quite
common knowledge.
--
-Colin
[Flex, as I recall, actually documents it. -John]
--


Post a followup to this message

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