Re: Universal Character Names

Eric Lemings <eric.b.lemings@lmco.com>
17 Oct 1998 01:47:40 -0400

          From comp.compilers

Related articles
Universal Character Names eric.b.lemings@lmco.com (Eric Lemings) (1998-10-10)
Re: Universal Character Names qjackson@wave.home.com (Quinn Tyler Jackson) (1998-10-13)
Re: Universal Character Names Brian.Inglis@cadvision.com (1998-10-13)
Re: Universal Character Names eric.b.lemings@lmco.com (Eric Lemings) (1998-10-17)
Re: Universal Character Names ok@atlas.otago.ac.nz (Dr Richard A. O'Keefe) (1998-10-17)
Re: Universal Character Names fjh@cs.mu.OZ.AU (1998-10-22)
Re: Universal Character Names eggert@twinsun.com (1998-10-30)
| List of all articles for this month |
From: Eric Lemings <eric.b.lemings@lmco.com>
Newsgroups: comp.compilers
Date: 17 Oct 1998 01:47:40 -0400
Organization: Lockheed Martin Astronautics
References: 98-10-068 98-10-074
Keywords: i18n

Quinn Tyler Jackson wrote:


> Since RE's like this are nasty, to say the least, I prefer to write
> these beasts out as if I were coding:


After much experimentation, I came up with something that worked:


%{
#include <stdio.h>
%}
ucn \\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{8})
ndg [a-zA-Z_]|{ucn}
adg [a-zA-Z0-9_]|{ucn}
%%
{ndg}{adg}* { printf ("identifier (%s)\n", yytext); }


Thank god for aliases, eh?


Eric.


Post a followup to this message

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