cfg_yacc.y revision cee0fb94c0d4227de0a00efc162fb2739844b641
%{
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <thread.h>
#include <synch.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/int_types.h>
#include <mms_list.h>
#include <mms_parser.h>
#include <mms_par_impl.h>
#define YYPARSE_PARAM wka
#define YYLEX_PARAM wka
#define YYERROR_VERBOSE 1
#define YYSTYPE mms_stype_t
#define mms_cfg_error(msg) { \
YYABORT; \
} \
}
mms_sym_t mms_cfg_tab[] = {
"mms_cfg", MMS_CFG,
};
%}
%%
/*
* MMS cfg file
*/
{
char msg[200];
}
}
;
{
char msg[200];
}
}
;
{
MMS_PAR_ALLOC_LIST($$.listp);
}
{
}
;
: section
{
}
;
: attr
{
MMS_PAR_ALLOC_LIST($$.listp);
}
{
}
;
{
}
;
| number
;
: KEYWORD
{
}
;
{
}
;
;
: KEYWORD
{
}
;
: KEYWORD
{
}
;
{
yyerror("Null string");
}
}
;
{
}
;
L : '<'
;
R : '>'
;
;
;
%%