fix: merge conflict
This commit is contained in:
commit
18c1da6bdf
4 changed files with 8 additions and 5 deletions
|
|
@ -2,7 +2,9 @@ lib_LIBRARIES = libparser.a
|
|||
|
||||
libparser_a_SOURCES = \
|
||||
parser.c \
|
||||
parsing_utils.c
|
||||
grammar.c \
|
||||
grammar_basic.c \
|
||||
grammar_advanced.c
|
||||
|
||||
libparser_a_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
|
|
|
|||
|
|
@ -51,12 +51,12 @@ struct firsts_list {
|
|||
* @return PARSER_INIT_SUCCESS on success PARSER_INIT_ERROR on error
|
||||
* @warning Do not use outside the parser
|
||||
*/
|
||||
bool grammar_init(void);
|
||||
bool grammar_init(void);
|
||||
|
||||
/* @brief Closes the grammar submodule
|
||||
* @warning Do not use outside the parser
|
||||
*/
|
||||
void grammar_close(void);
|
||||
void grammar_close(void);
|
||||
|
||||
/* @brief Acts as the entry point of the parser, calls parse_list
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef GRAMMAR_BASIC_H
|
||||
#define GRAMMAR_BASIC_H
|
||||
|
||||
#include "../utils/ast/ast.h"
|
||||
#include "../lexer/lexer.h"
|
||||
#include "../utils/ast/ast.h"
|
||||
|
||||
// === Functions
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
#include "../lexer/lexer.h"
|
||||
#include "../utils/ast/ast.h"
|
||||
|
||||
enum parser_state {
|
||||
enum parser_state
|
||||
{
|
||||
PARSER_STATE_NOT_INITIALIZED = 0,
|
||||
PARSER_STATE_READY,
|
||||
PARSER_STATE_CLOSED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue