msgparse.y revision 1.2
11.2Sagc/*	$NetBSD: msgparse.y,v 1.2 2003/06/23 13:05:50 agc Exp $	*/
21.1Sphil
31.1Sphil/*
41.1Sphil * Copyright 1997 Piermont Information Systems Inc.
51.1Sphil * All rights reserved.
61.1Sphil *
71.1Sphil * Written by Philip A. Nelson for Piermont Information Systems Inc.
81.1Sphil *
91.1Sphil * Redistribution and use in source and binary forms, with or without
101.1Sphil * modification, are permitted provided that the following conditions
111.1Sphil * are met:
121.1Sphil * 1. Redistributions of source code must retain the above copyright
131.1Sphil *    notice, this list of conditions and the following disclaimer.
141.1Sphil * 2. Redistributions in binary form must reproduce the above copyright
151.1Sphil *    notice, this list of conditions and the following disclaimer in the
161.1Sphil *    documentation and/or other materials provided with the distribution.
171.1Sphil * 3. All advertising materials mentioning features or use of this software
181.1Sphil *    must display the following acknowledgement:
191.1Sphil *      This product includes software develooped for the NetBSD Project by
201.1Sphil *      Piermont Information Systems Inc.
211.1Sphil * 4. The name of Piermont Information Systems Inc. may not be used to endorse
221.1Sphil *    or promote products derived from this software without specific prior
231.1Sphil *    written permission.
241.1Sphil *
251.1Sphil * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
261.1Sphil * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
271.1Sphil * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
281.1Sphil * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
291.1Sphil * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
301.1Sphil * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
311.1Sphil * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
321.1Sphil * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
331.1Sphil * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
341.1Sphil * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
351.1Sphil * THE POSSIBILITY OF SUCH DAMAGE.
361.1Sphil *
371.1Sphil */
381.1Sphil
391.1Sphil%{
401.2Sagc
411.2Sagc#include <sys/cdefs.h>
421.2Sagc
431.2Sagc#ifndef lint
441.2Sagc__RCSID("$NetBSD: msgparse.y,v 1.2 2003/06/23 13:05:50 agc Exp $");
451.2Sagc#endif
461.2Sagc
471.1Sphil
481.1Sphil#include "defs.h"
491.1Sphil
501.1Sphil%}
511.1Sphil
521.1Sphil%union {
531.1Sphil	char *s_value;
541.1Sphil}
551.1Sphil
561.1Sphil
571.1Sphil%token MESSAGE
581.1Sphil%token <s_value> NAME VALUE
591.1Sphil
601.1Sphil%start list
611.1Sphil
621.1Sphil%%
631.1Sphil
641.1Sphillist	: /* empty */
651.1Sphil	| list msg
661.1Sphil	;
671.1Sphil
681.1Sphil
691.1Sphilmsg	: MESSAGE NAME VALUE
701.1Sphil		{ define_msg ($2, $3); }
71