fix syntax

This commit is contained in:
Ralf S. Engelschall 2005-10-06 09:16:24 +00:00
parent 18f0d6d3bc
commit b6f2157e17

View File

@ -114,6 +114,7 @@ sourceroutings: /* empty */ { $$ = (YYSTYPE) NULL; }
str_join($$,$1,$2); str_join($$,$$,$3); str_join($$,$1,$2); str_join($$,$$,$3);
str_join($$,$$,$4); str_join($$,$$,$4);
} }
;
local: atom { $$ = $1; } local: atom { $$ = $1; }
| atom local { str_join($$,$1,$2); } | atom local { str_join($$,$1,$2); }
@ -125,10 +126,10 @@ domain: atom { $$ = $1; }
| atom dot domain { str_join($$,$2,$3); str_join($$,$1,$$); } | atom dot domain { str_join($$,$2,$3); str_join($$,$1,$$); }
; ;
atom: TOK_ATOM { str_dup($$,yytext); } atom: TOK_ATOM { str_dup($$,yytext); };
dot: '.' { $$ = (YYSTYPE) "."; } dot: '.' { $$ = (YYSTYPE) "."; };
at: '@' { $$ = (YYSTYPE) "@"; } at: '@' { $$ = (YYSTYPE) "@"; };
colon: ':' { $$ = (YYSTYPE) ":"; } colon: ':' { $$ = (YYSTYPE) ":"; };
%% %%
/***** internal routines *****/ /***** internal routines *****/