From a67266ff72280b85fed7ec498967a855a5735639 Mon Sep 17 00:00:00 2001 From: kartofen Date: Tue, 1 Jul 2025 00:11:29 +0300 Subject: major refactor, more modular (wow because obviously modularity is always a good thing yes), and etc --- parts/symbol.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 parts/symbol.h (limited to 'parts/symbol.h') diff --git a/parts/symbol.h b/parts/symbol.h new file mode 100644 index 0000000..d3cb5cd --- /dev/null +++ b/parts/symbol.h @@ -0,0 +1,12 @@ +#ifndef SYMBOL_H +#define SYMBOL_H + +typedef unsigned int symbol; +extern const size_t total_symbols; +// extern char *symbol_to_str[] ... + +extern int symbol_is_terminal(symbol s); +extern int symbol_is_input_end(symbol s); +extern int symbol_is_valid(symbol s); + +#endif -- cgit v1.2.3