diff --git a/assets/parser.c.erb b/assets/parser.c.erb index 6bba016..7720c82 100644 --- a/assets/parser.c.erb +++ b/assets/parser.c.erb @@ -566,6 +566,9 @@ size_t <%= @grammar.prefix %>lex(<%= @grammar.prefix %>context_t * context, <%= * Parser *************************************************************************/ +/** Invalid position value. */ +#define INVALID_POSITION (<%= @grammar.prefix %>position_t){0xFFFFFFFFu, 0xFFFFFFFFu} + /** Reduce ID type. */ typedef <%= get_type_for(@parser.reduce_table.size) %> reduce_id_t; diff --git a/assets/parser.h.erb b/assets/parser.h.erb index 6b14593..df08c8a 100644 --- a/assets/parser.h.erb +++ b/assets/parser.h.erb @@ -52,9 +52,6 @@ typedef struct uint32_t col; } <%= @grammar.prefix %>position_t; -/** Invalid position value. */ -#define INVALID_POSITION (<%= @grammar.prefix %>position_t){0xFFFFFFFFu, 0xFFFFFFFFu} - /** Return whether the position is valid. */ #define <%= @grammar.prefix %>position_valid(p) ((p).row != 0xFFFFFFFFu)