Re: with or without keywords

Vladimir Alexiev <vladimir@cs.ualberta.ca>
15 Mar 1998 00:24:56 -0500

          From comp.compilers

Related articles
with or without keywords gergoe@math.bme.hu (Buday Gergely) (1998-03-12)
Re: with or without keywords vladimir@cs.ualberta.ca (Vladimir Alexiev) (1998-03-15)
Re: with or without keywords scott@basis.com (1998-03-18)
Re: with or without keywords Nick.Roberts@dial.pipex.com (Nick Roberts) (1998-03-18)
Re: with or without keywords os@cs.tu-berlin.de (Olaf Stoyke) (1998-03-18)
| List of all articles for this month |

From: Vladimir Alexiev <vladimir@cs.ualberta.ca>
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.