msgparse.y revision 1.1
11.1Sphil/* $NetBSD: msgparse.y,v 1.1 1997/09/26 21:16:38 phil 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.1Sphil 411.1Sphil#include "defs.h" 421.1Sphil 431.1Sphil%} 441.1Sphil 451.1Sphil%union { 461.1Sphil char *s_value; 471.1Sphil} 481.1Sphil 491.1Sphil 501.1Sphil%token MESSAGE 511.1Sphil%token <s_value> NAME VALUE 521.1Sphil 531.1Sphil%start list 541.1Sphil 551.1Sphil%% 561.1Sphil 571.1Sphillist : /* empty */ 581.1Sphil | list msg 591.1Sphil ; 601.1Sphil 611.1Sphil 621.1Sphilmsg : MESSAGE NAME VALUE 631.1Sphil { define_msg ($2, $3); } 64