BRL-CAD
obj_grammar_decls.h
Go to the documentation of this file.
1 /* O B J _ G R A M M A R _ D E C L S . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2011-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @file obj_grammar.h
21  *
22  * Necessary declarations to parse grammar.
23  *
24  */
25 
26 #ifndef LIBGCV_WFOBJ_OBJ_GRAMMAR_DECLS_H
27 #define LIBGCV_WFOBJ_OBJ_GRAMMAR_DECLS_H
28 
29 #include "common.h"
30 #include "obj_grammar.hpp"
31 #include "obj_rules.h"
32 #include "obj_token_type.h"
33 
35 
36 void *ParseAlloc(void *(*mallocProc)(size_t));
37 void Parse(void *parser, int tokenType, YYSTYPE tokenValue, yyscan_t scanner);
38 void ParseFree(void *p, void (*freeProc)(void*));
39 void ParseTrace(FILE *stream, char *prefix);
40 
42 
43 #endif
44 
45 /*
46  * Local Variables:
47  * tab-width: 8
48  * mode: C
49  * indent-tabs-mode: t
50  * c-file-style: "stroustrup"
51  * End:
52  * ex: shiftwidth=4 tabstop=8
53  */
void ParseFree(void *p, void(*freeProc)(void *))
void ParseTrace(FILE *stream, char *prefix)
Header file for the BRL-CAD common definitions.
void * ParseAlloc(void *(*mallocProc)(size_t))
#define __BEGIN_DECLS
Definition: common.h:73
perplex_t yyscan_t
Definition: obj_rules.h:52
void Parse(void *parser, int tokenType, YYSTYPE tokenValue, yyscan_t scanner)
#define __END_DECLS
Definition: common.h:74