From b6f2157e1791a027d8e7e0d056c4de7535e5dc30 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Thu, 6 Oct 2005 09:16:24 +0000 Subject: [PATCH] fix syntax --- librfc822/address.y | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/librfc822/address.y b/librfc822/address.y index ec3e3c4..0f67b3c 100644 --- a/librfc822/address.y +++ b/librfc822/address.y @@ -114,6 +114,7 @@ sourceroutings: /* empty */ { $$ = (YYSTYPE) NULL; } str_join($$,$1,$2); str_join($$,$$,$3); str_join($$,$$,$4); } +; local: atom { $$ = $1; } | atom local { str_join($$,$1,$2); } @@ -125,10 +126,10 @@ domain: atom { $$ = $1; } | atom dot domain { str_join($$,$2,$3); str_join($$,$1,$$); } ; -atom: TOK_ATOM { str_dup($$,yytext); } -dot: '.' { $$ = (YYSTYPE) "."; } -at: '@' { $$ = (YYSTYPE) "@"; } -colon: ':' { $$ = (YYSTYPE) ":"; } +atom: TOK_ATOM { str_dup($$,yytext); }; +dot: '.' { $$ = (YYSTYPE) "."; }; +at: '@' { $$ = (YYSTYPE) "@"; }; +colon: ':' { $$ = (YYSTYPE) ":"; }; %% /***** internal routines *****/