"Fossies" - the Fresh Open Source Software Archive

Member "mod_auth_gssapi-1.6.3/src/lex.l" (25 Jul 2017, 529 Bytes) of package /linux/www/apache_httpd_modules/mod_auth_gssapi-1.6.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* Copyright (C) 2017 mod_auth_gssapi contributors - See COPYING for (C) terms
    2  *
    3  * Scanner for the GssapiRequiredNameAttributes option parser.
    4  */
    5 %{
    6 #include <string.h>
    7 #include "parser.h"
    8 %}
    9 
   10 %option noyywrap noinput nounput
   11 
   12 %%
   13 
   14 "(" { return LPAREN; }
   15 ")" { return RPAREN; }
   16 " " { return SPACE; }
   17 "or" { return OR; }
   18 "OR" { return OR; }
   19 "and" { return AND; }
   20 "AND" { return AND; }
   21 "=" { return EQUAL; }
   22 ":=" { return EQUALBIN; }
   23 "*" { return AST; }
   24 [A-Za-z0-9_\-\[\]]+ {
   25     yylval.sval = strdup(yytext);
   26     return STRING;
   27 }
   28 
   29 %%