Fixes recursion bug in disambiguate_in().
[ohcount] / doc / examples / parser_doc_1
1 /************************* Required for every parser *************************/
2 #ifndef OHCOUNT_C_PARSER_H
3 #define OHCOUNT_C_PARSER_H
4
5 #include "../parser_macros.h"
6
7 // the name of the language
8 const char *C_LANG = LANG_C;
9
10 // the languages entities
11 const char *c_entities[] = {
12   "space", "comment", "string", "number", "preproc",
13   "keyword", "identifier", "operator", "any"
14 };
15
16 // constants associated with the entities
17 enum {
18   C_SPACE = 0, C_COMMENT, C_STRING, C_NUMBER, C_PREPROC,
19   C_KEYWORD, C_IDENTIFIER, C_OPERATOR, C_ANY
20 };
21
22 /*****************************************************************************/