comparison extensions/rt_default/rtd_conf.y @ 168:6db078b955e3

Completed rt_default extension
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 02 Feb 2010 10:15:05 +0900
parents 967e579beb64
children f8507f57a3c0
comparison
equal deleted inserted replaced
167:967e579beb64 168:6db078b955e3
149 %token DH 149 %token DH
150 %token DR 150 %token DR
151 %token UN 151 %token UN
152 %token SI 152 %token SI
153 153
154 %token IDENTITY
155 %token REALM 154 %token REALM
156 155
157 156
158 157
159 /* -------------------------------------- */ 158 /* -------------------------------------- */
177 CHECK_FCT_DO( rtd_add($1.type, $1.str, $3.type, $3.str, $6, flag), 176 CHECK_FCT_DO( rtd_add($1.type, $1.str, $3.type, $3.str, $6, flag),
178 { 177 {
179 yyerror (&yylloc, conffile, "An error occurred while adding a rule, aborting..."); 178 yyerror (&yylloc, conffile, "An error occurred while adding a rule, aborting...");
180 YYERROR; 179 YYERROR;
181 } ); 180 } );
181
182 rules_added++;
182 } 183 }
183 ; 184 ;
184 185
185 /* QSTRING and BQSTRING are equivalent in the grammar */ 186 /* QSTRING and BQSTRING are equivalent in the grammar */
186 TSTRING: QSTRING 187 TSTRING: QSTRING
239 $$.type = RTD_CRI_SI; 240 $$.type = RTD_CRI_SI;
240 } 241 }
241 ; 242 ;
242 243
243 /* Details of the TARGET type */ 244 /* Details of the TARGET type */
244 TARGET: IDENTITY '=' TSTRING 245 TARGET: TSTRING
245 { 246 {
246 $$.str = $3.str; 247 $$.str = $1.str;
247 $$.regex =$3.regex; 248 $$.regex =$1.regex;
248 $$.type = RTD_TAR_ID; 249 $$.type = RTD_TAR_ID;
249 } 250 }
250 | REALM '=' TSTRING 251 | REALM '=' TSTRING
251 { 252 {
252 $$.str = $3.str; 253 $$.str = $3.str;
"Welcome to our mercurial repository"