Kristian Høgsberg <k...@bitplanet.net> writes:
> Oh, I should have read the rest of the page - there's %option warn to
> go with nodefault:
>
>      warn about certain things. In particular, if the default rule can
>      be matched but no default rule has been given, the flex will warn
>      you.  We recommend using this option always.
>
> which looks like flex can detect this condition at compile time and
> warn about it.

Thanks, Kristian! That's a very handy feature, and yes, it does work
like you hoped. Flex can tell us at compile-time whether the set of
rules we have will cover all characters and in all start conditions.

I've just sent a little series of 4 patches to add these options to both
glcpp and the main glsl compiler. (I would have sent them as replies,
but I botched the git-send-email command yet again and they went out
already).

-Carl

-- 
carl.d.wo...@intel.com

Attachment: pgplNO5qtElOl.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to