11.5Smbalmer/*	$NetBSD: msgparse.y,v 1.5 2012/03/06 16:26:01 mbalmer 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.5Smbalmer * 3. The name of Piermont Information Systems Inc. may not be used to endorse
181.1Sphil *    or promote products derived from this software without specific prior
191.1Sphil *    written permission.
201.1Sphil *
211.1Sphil * THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
221.1Sphil * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
231.1Sphil * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
241.4Smbalmer * ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
251.4Smbalmer * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
261.4Smbalmer * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
271.1Sphil * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
281.1Sphil * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
291.1Sphil * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
301.4Smbalmer * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
311.1Sphil * THE POSSIBILITY OF SUCH DAMAGE.
321.1Sphil *
331.1Sphil */
341.1Sphil
351.1Sphil%{
361.2Sagc
371.2Sagc#include <sys/cdefs.h>
381.2Sagc
391.3Slukem#if defined(__RCSID) && !defined(lint)
401.5Smbalmer__RCSID("$NetBSD: msgparse.y,v 1.5 2012/03/06 16:26:01 mbalmer Exp $");
411.2Sagc#endif
421.2Sagc
431.1Sphil
441.1Sphil#include "defs.h"
451.1Sphil
461.1Sphil%}
471.1Sphil
481.1Sphil%union {
491.1Sphil	char *s_value;
501.1Sphil}
511.1Sphil
521.1Sphil
531.1Sphil%token MESSAGE
541.1Sphil%token <s_value> NAME VALUE
551.1Sphil
561.1Sphil%start list
571.1Sphil
581.1Sphil%%
591.1Sphil
601.1Sphillist	: /* empty */
611.4Smbalmer	| list msg
621.1Sphil	;
631.1Sphil
641.1Sphil
651.4Smbalmermsg	: MESSAGE NAME VALUE
661.1Sphil		{ define_msg ($2, $3); }
67