meta: replace bluelib with fx
This commit is contained in:
20
lang/lex.h
20
lang/lex.h
@@ -1,9 +1,9 @@
|
||||
#ifndef _LEX_H_
|
||||
#define _LEX_H_
|
||||
|
||||
#include <blue/core/queue.h>
|
||||
#include <blue/ds/dict.h>
|
||||
#include <blue/ds/string.h>
|
||||
#include <fx/core/queue.h>
|
||||
#include <fx/ds/dict.h>
|
||||
#include <fx/ds/string.h>
|
||||
#include <ivy/lang/lex.h>
|
||||
#include <ivy/status.h>
|
||||
#include <stdint.h>
|
||||
@@ -16,15 +16,15 @@ struct ivy_lexer {
|
||||
struct ivy_lexer_symbol_node *lex_sym_tree;
|
||||
struct ivy_diag_ctx *lex_diag_ctx;
|
||||
struct ivy_line_source *lex_source;
|
||||
b_dict *lex_keywords;
|
||||
fx_dict *lex_keywords;
|
||||
enum ivy_status lex_status;
|
||||
int lex_prev_char, lex_cur_char;
|
||||
|
||||
b_queue lex_queue;
|
||||
fx_queue lex_queue;
|
||||
enum ivy_token_type lex_prev_token;
|
||||
|
||||
b_string *lex_temp;
|
||||
b_queue lex_state;
|
||||
fx_string *lex_temp;
|
||||
fx_queue lex_state;
|
||||
unsigned int lex_brace_depth;
|
||||
|
||||
unsigned long lex_token_start_row, lex_token_start_col;
|
||||
@@ -47,15 +47,15 @@ enum lexer_state_type {
|
||||
struct lexer_state {
|
||||
enum lexer_state_type s_type;
|
||||
unsigned int s_brace_depth;
|
||||
b_queue_entry s_entry;
|
||||
fx_queue_entry s_entry;
|
||||
};
|
||||
|
||||
struct ivy_lexer_symbol_node {
|
||||
char s_char;
|
||||
struct lex_token_def *s_def;
|
||||
|
||||
b_queue_entry s_entry;
|
||||
b_queue s_children;
|
||||
fx_queue_entry s_entry;
|
||||
fx_queue s_children;
|
||||
};
|
||||
|
||||
struct lex_token_def {
|
||||
|
||||
Reference in New Issue
Block a user