%{ /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ /* * lexer for parsing xml-property source files (*.xml) * */ /* enlarge token buffer to tokenize whole strings */ #undef YYLMAX #define YYLMAX 64000 /* to enable debug output define LEXDEBUG */ #define LEXDEBUG 1 #ifdef LEXDEBUG #define OUTPUT fprintf #else #define OUTPUT(Par1,Par2); #endif /* table of possible token ids */ #include "tokens.h" #include #include #if defined __GNUC__ #pragma GCC system_header #elif defined __SINPRO_CC #pragma disable_warn #elif defined _MSC_VER #pragma warning(push, 1) #endif /* external functions (C++ code, declared as extren "C" */ extern int WorkOnTokenSet( int, char* ); extern int Argument( char * ); extern int InitXrmExport( char * , char * ); extern int EndXrmExport(); extern int GetError(); extern int SetError(); extern char *GetOutputFile( int argc, char* argv[]); extern FILE *GetXrmFile(); extern int isQuiet(); extern void removeTempFile(); extern char* getFilename(); /* forwards */ void YYWarning(); int bText=0; %} %p 24000 %e 1200 %n 500 %% "

]*xml:lang[^\>]*\> { WorkOnTokenSet( XRM_TEXT_START , yytext ); } "

" { WorkOnTokenSet( XRM_TEXT_END, yytext ); } "

]*xml:lang[^\>]*\> { WorkOnTokenSet( XRM_TEXT_START , yytext ); } "

" { WorkOnTokenSet( XRM_TEXT_END, yytext ); } "

]*xml:lang[^\>]*\> { WorkOnTokenSet( XRM_TEXT_START , yytext ); } "

" { WorkOnTokenSet( XRM_TEXT_END, yytext ); } "

]*xml:lang[^\>]*\> { WorkOnTokenSet( XRM_TEXT_START , yytext ); } "

" { WorkOnTokenSet( XRM_TEXT_END, yytext ); } "

]*xml:lang[^\>]*\> { WorkOnTokenSet( XRM_TEXT_START , yytext ); } "

" { WorkOnTokenSet( XRM_TEXT_END, yytext ); } "
]*xml:lang[^\>]*\> { WorkOnTokenSet( XRM_TEXT_START , yytext ); } "
" { WorkOnTokenSet( XRM_TEXT_END, yytext ); } "