parser.h revision 1.3
11.3Sjoerg/* $NetBSD: parser.h,v 1.3 2020/04/23 00:29:00 joerg Exp $ */
21.1Sdegroote
31.1Sdegroote/*-
41.1Sdegroote * Copyright (c) 2010 The NetBSD Foundation, Inc.
51.1Sdegroote * All rights reserved.
61.1Sdegroote *
71.1Sdegroote * Redistribution and use in source and binary forms, with or without
81.1Sdegroote * modification, are permitted provided that the following conditions
91.1Sdegroote * are met:
101.1Sdegroote * 1. Redistributions of source code must retain the above copyright
111.1Sdegroote *    notice, this list of conditions and the following disclaimer.
121.1Sdegroote * 2. Redistributions in binary form must reproduce the above copyright
131.1Sdegroote *    notice, this list of conditions and the following disclaimer in the
141.1Sdegroote *    documentation and/or other materials provided with the distribution.
151.1Sdegroote *
161.1Sdegroote * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
171.1Sdegroote * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
181.1Sdegroote * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
191.1Sdegroote * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
201.1Sdegroote * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
211.1Sdegroote * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
221.1Sdegroote * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
231.1Sdegroote * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
241.1Sdegroote * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
251.1Sdegroote * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
261.1Sdegroote * POSSIBILITY OF SUCH DAMAGE.
271.1Sdegroote */
281.1Sdegroote#ifndef _PARSER_H_
291.1Sdegroote#define _PARSER_H_
301.1Sdegroote
311.1Sdegrooteint yylex(void);
321.1Sdegrootevoid yyerror(const char*);
331.2Sjoerg__dead void yyfatal(const char*);
341.1Sdegrooteint parse(FILE*, struct pfioc_states*);
351.1Sdegrooteint yyparse(void);
361.1Sdegroote
371.3Sjoergextern int lineno;
381.1Sdegroote
391.3Sjoergextern struct pfioc_states* states;
401.3Sjoergextern size_t allocated;
411.1Sdegroote
421.1Sdegroote#endif /* _PARSER_H_*/
43