Add token_names API - close #17

This commit is contained in:
josh committed 2024-03-29 15:02:01 -04:00
1 parent 5dfd62b756
commit 1c91dcd298
5 files changed
+46

No files matched your search

+7
View File
@@ -116,6 +116,13 @@ typedef struct
size_t user_terminate_code;
} <%= @grammar.prefix %>context_t;
/**************************************************************************
* Public data
*************************************************************************/
/** Token names. */
extern const char * <%= @grammar.prefix %>token_names[];
void <%= @grammar.prefix %>context_init(<%= @grammar.prefix %>context_t * context, uint8_t const * input, size_t input_length);
size_t <%= @grammar.prefix %>decode_code_point(uint8_t const * input, size_t input_length,