| 1 |
%{ |
| 2 |
/********************************************************************* |
| 3 |
* |
| 4 |
* Authors: Vincenzo Ciaschini - [email protected] |
| 5 |
* |
| 6 |
* Copyright (c) Members of the EGEE Collaboration. 2004-2010. |
| 7 |
* See http://www.eu-egee.org/partners/ for details on the copyright holders. |
| 8 |
* |
| 9 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 |
* you may not use this file except in compliance with the License. |
| 11 |
* You may obtain a copy of the License at |
| 12 |
* |
| 13 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 14 |
* |
| 15 |
* Unless required by applicable law or agreed to in writing, software |
| 16 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 17 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 |
* See the License for the specific language governing permissions and |
| 19 |
* limitations under the License. |
| 20 |
* |
| 21 |
* Parts of this code may be based upon or even include verbatim pieces, |
| 22 |
* originally written by other people, in which case the original header |
| 23 |
* follows. |
| 24 |
* |
| 25 |
*********************************************************************/ |
| 26 |
#include "config.h" |
| 27 |
#include <stdio.h> |
| 28 |
#include <string.h> |
| 29 |
|
| 30 |
#include <stdlib.h> |
| 31 |
|
| 32 |
#include "parsertypes.h" |
| 33 |
#include "signing_policy_parse.h" |
| 34 |
%} |
| 35 |
|
| 36 |
%x SINGLE_QUOTED |
| 37 |
%x DOUBLE_QUOTED |
| 38 |
|
| 39 |
%option reentrant |
| 40 |
%option noyywrap |
| 41 |
%option prefix="signing" |
| 42 |
%option bison-bridge |
| 43 |
|
| 44 |
%% |
| 45 |
|
| 46 |
#.* /* ignore comments */ |
| 47 |
\' BEGIN(SINGLE_QUOTED); |
| 48 |
|
| 49 |
<SINGLE_QUOTED>[^']*\' yytext[strlen(yytext)-1]='\0'; yylval_param->string = yytext; BEGIN(INITIAL); return SUBJECTS; |
| 50 |
|
| 51 |
\" BEGIN(DOUBLE_QUOTED); |
| 52 |
<DOUBLE_QUOTED>[^"]*\" yytext[strlen(yytext)-1]='\0'; yylval_param->string = yytext; BEGIN(INITIAL); return SUBJECTS; |
| 53 |
|
| 54 |
|
| 55 |
cond_subjects return COND_SUBJECTS; |
| 56 |
cond_banned_subjects return COND_BANNED; |
| 57 |
globus return GLOBUS; |
| 58 |
pos_rights return POS_RIGHTS; |
| 59 |
neg_rights return NEG_RIGHTS; |
| 60 |
CA\:sign return CA_SIGN; |
| 61 |
access_id_CA return ACCESS_ID_CA; |
| 62 |
access_id_ANYBODY return ACCESS_ID_ANYBODY; |
| 63 |
X509 return X509; |
| 64 |
|
| 65 |
\n |
| 66 |
. |
| 67 |
|