Re: with or without keywords

Vladimir Alexiev <>
15 Mar 1998 00:24:56 -0500

          From comp.compilers

Related articles
with or without keywords (Buday Gergely) (1998-03-12)
Re: with or without keywords (Vladimir Alexiev) (1998-03-15)
Re: with or without keywords (1998-03-18)
Re: with or without keywords (Nick Roberts) (1998-03-18)
Re: with or without keywords (Olaf Stoyke) (1998-03-18)
| List of all articles for this month |

From: Vladimir Alexiev <>
Newsgroups: comp.compilers
Date: 15 Mar 1998 00:24:56 -0500
Organization: University of Alberta, Computing Science
References: 98-03-110
Keywords: parse

[ how to parse embedded SQL without tripping over SQL keyworks in
non-SQL code ]
The easiest way to achieve this, IMHO, is to introduce feedback from
the parser to the lexer. When the parser recognizes the beginning of
an sql statement, it sets a lexer flag saying "give me sql keywords
now". Flex has this builtin, it's called "start states". Even if you
don't use flex, read its doc to get some ideas.

Post a followup to this message

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