WONKY



LOG | FILES | OVERVIEW


#ifndef WONKY_AUTOMATA_H
#define WONKY_AUTOMATA_H WONKY_AUTOMATA_H
#include <automata.hh>
#include <stddef.h>
#include <identifier.h>
#include <token.h>
#include <wonky_malloc.h>

extern enum Source_Chars compress[256];
struct Automata_Node
{
	enum Automata_Action action;
	enum LEXER_TYPE keyword;
	enum LEXER_TYPE preprocessing_keyword;
	struct identifier *data;

	struct Automata_Node *delta[CHAR_ENUM_END];

};

enum Source_Chars get_ch(const char *str,size_t limit);
struct Automata_Node* get_new_id_node(struct Automata_Node *base,enum Source_Chars delta);
extern struct Automata_Node chonky[];
extern struct Automata_Node chonky_jr[];
extern struct identifier defined_special_identifier;

extern struct identifier file_special_identifier;

extern const char *lexer_type_to_string_map[LEXER_TYPE_END];

#endif