help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comments in lexical definitions


From: Hans-Bernhard Broeker
Subject: Re: comments in lexical definitions
Date: Thu, 16 Aug 2001 14:49:51 +0200 (MET DST)

On Thu, 16 Aug 2001, Tobias Ostgathe wrote:

> Ok, there is an example at the end of the mail. I've used C++ comments
> for the comments I am missing in lexical definition files.

[Looked at example...]

So you want to be able to put comments *between* individual rules, where
currently only whitespace is allowed (setting aside initial state blocks).

This immediately raises the problem of distinguishing between such a
comment and a (possibly) valid pattern to be matched. The syntax for
patterns is rather generic, meaning there's not much space to squeeze in a
comment indicator without breaking existing (f)lex inputs. '//' e.g. would
currently cause a syntax error (two occurences of the "trailing context"
operator in one rule aren't allowed).

-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]