%{ /* * Copyright (c) 1992-93 by Mark Boyns (boyns@sdsu.edu) * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation. This software is provided "as is" without express or * implied warranty. */ extern char yytext[]; %} %token Setenv Command Equal QuotedString String Auto Default Motd NString %% lines : lines line | line line : Setenv String { setenv(); } any_string { setenv(); } | Command { command_create(); } option quotedstring { command_name(); } command_path { command_path(); } command_args { command_insert(); } | Motd String { print(yytext); } option : Auto { command_auto(); } | Default { command_default(); } | null command_path : String { command_path(); } command_args : command_args command_arg | command_arg command_arg : String { command_arg(); } quotedstring : QuotedString { rmquotes(); } any_string : String | quotedstring null : ; %%