From b4fe63bde9631e072f26911363739c0042d8b2db Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 8 Oct 1996 08:21:38 +0000 Subject: More English-like keywords. svn path=/trunk/; revision=249 --- rcfile_y.y | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index 32c5b244..6fa5d31d 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -29,7 +29,8 @@ int yydebug; /* in case we didn't generate with -- debug */ char *sval; } -%token SERVER PROTOCOL USERNAME PASSWORD FOLDER SMTPHOST MDA DEFAULTS IS HERE +%token DEFAULTS SERVER PROTOCOL +%token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE %token PROTO %token STRING %token KEEP FLUSH FETCHALL REWRITE PORT SKIP @@ -69,11 +70,16 @@ userspecs : user1opts {prc_register(); prc_reset();} | explicits ; -explicits : userdef {prc_register(); prc_reset();} - | explicits userdef {prc_register(); prc_reset();} +explicits : explicitdef {prc_register(); prc_reset();} + | explicits explicitdef {prc_register(); prc_reset();} ; -userdef : USERNAME STRING user0opts {prc_setremote($2);} +explicitdef : userdef user0opts + ; + +userdef : USERNAME STRING {prc_setremote($2);} + | USERNAME STRING HERE {prc_setlocal($2);} + | USERNAME STRING THERE {prc_setremote($2);} ; user0opts : /* EMPTY */ @@ -86,6 +92,7 @@ user1opts : user_option user_option : IS STRING {prc_setlocal($2);} | IS STRING HERE {prc_setlocal($2);} + | IS STRING THERE {prc_setremote($2);} | PASSWORD STRING {prc_setpassword($2);} | FOLDER STRING {prc_setfolder($2);} | SMTPHOST STRING {prc_setsmtphost($2);} -- cgit v1.2.3