2 * This file is part of cparser.
3 * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
12 typedef struct environment_entry_t environment_entry_t;
15 * Initialize parser. Should be called once when the program starts
17 void init_parser(void);
19 * Frees resources occupied by parser. Should be called once before the program
22 void exit_parser(void);
25 * Start parsing a new compilation unit
27 void start_parsing(void);
30 * Parse input. The source of the input is determined by the lexer module
35 * Finish parsing a complete compilation unit and return the AST.
37 translation_unit_t *finish_parsing(void);
39 type_t *revert_automatic_type_conversion(const expression_t *expression);
41 entity_t *record_entity(entity_t *entity, bool is_definition);
43 /** set default elf visbility */
44 void set_default_visibility(elf_visibility_tag_t visibility);