File: json.h

package info (click to toggle)
libcleri 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: ansic: 4,572; makefile: 51; sh: 40
file content (32 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * json.h
 *
 * This grammar is generated using the Grammar.export_c() method and
 * should be used with the cleri module.
 *
 * Source class: JsonGrammar
 * Created at: 2017-06-20 21:53:53
 */
#ifndef CLERI_EXPORT_JSON_H_
#define CLERI_EXPORT_JSON_H_

#include <cleri/cleri.h>

cleri_grammar_t * compile_grammar(void);

enum cleri_grammar_ids {
    CLERI_NONE,   // used for objects with no name
    CLERI_GID_JSON_ARRAY,
    CLERI_GID_JSON_MAP,
    CLERI_GID_JSON_MAP_ITEM,
    CLERI_GID_K_FALSE,
    CLERI_GID_K_NULL,
    CLERI_GID_K_TRUE,
    CLERI_GID_R_FLOAT,
    CLERI_GID_R_INTEGER,
    CLERI_GID_R_STRING,
    CLERI_GID_START,
    CLERI_END // can be used to get the enum length
};

#endif /* CLERI_EXPORT_JSON_H_ */