home *** CD-ROM | disk | FTP | other *** search
Lex Description | 1992-08-19 | 1.2 KB | 35 lines |
- %{
- /* Conversion of files between different charsets and usages.
- Copyright (C) 1990 Free Software Foundation, Inc.
- Francois Pinard <pinard@iro.umontreal.ca>, 1988.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
- #define STEP ascii_texte
-
- extern char diaeresis_char; /* Character for diaeresis */
- %}
-
- %%
- \"\b\<|\<\b\" { output ('`'); output ('`'); }
- \"\b\>|\>\b\" { output ('\''); output ('\''); }
-
- ['`^,]\b. { output (yytext[2]); output (yytext[0]); }
- .\b['`^,] { output (yytext[0]); output (yytext[2]); }
-
- \"\b. { output (yytext[2]); output (diaeresis_char); }
- .\b\" { output (yytext[0]); output (diaeresis_char); }
-