lang: ast: move unit-package parser state definition to c file
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
#include <blue/object/string.h>
|
#include <blue/object/string.h>
|
||||||
|
#include <ivy/lang/lex.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "unit-package.h"
|
|
||||||
|
|
||||||
#include "ctx.h"
|
#include "ctx.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
|
|
||||||
|
struct unit_package_parser_state {
|
||||||
|
struct parser_state s_base;
|
||||||
|
int s_prev_token;
|
||||||
|
};
|
||||||
|
|
||||||
static enum ivy_status parse_dot(struct ivy_parser *ctx, struct ivy_token *tok)
|
static enum ivy_status parse_dot(struct ivy_parser *ctx, struct ivy_token *tok)
|
||||||
{
|
{
|
||||||
struct unit_package_parser_state *state
|
struct unit_package_parser_state *state
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
#ifndef _AST_UNIT_PACKAGE_H_
|
|
||||||
#define _AST_UNIT_PACKAGE_H_
|
|
||||||
|
|
||||||
#include "ctx.h"
|
|
||||||
|
|
||||||
#include <ivy/lang/lex.h>
|
|
||||||
|
|
||||||
struct unit_package_parser_state {
|
|
||||||
struct parser_state s_base;
|
|
||||||
int s_prev_token;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
#include <ivy/lang/ast.h>
|
#include <ivy/lang/ast.h>
|
||||||
#include "ctx.h"
|
#include "ctx.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "unit-package.h"
|
|
||||||
#include "iterate.h"
|
#include "iterate.h"
|
||||||
|
|
||||||
static enum ivy_status parse_package_keyword(
|
static enum ivy_status parse_package_keyword(
|
||||||
|
|||||||
Reference in New Issue
Block a user