Support custom lex function

This commit is contained in:
josh committed 2026-04-10 16:36:16 -04:00
1 parent e992e6344a
commit 51b09a5799
9 files changed
+229 -2

No files matched your search

+1 -1
View File
@@ -981,7 +981,7 @@ static size_t parse_from(<%= @grammar.prefix %>context_t * context, size_t start
{
if (token == INVALID_TOKEN_ID)
{
size_t lexer_result = <%= @grammar.prefix %>lex(context, &token_info);
size_t lexer_result = <%= lex_fn %>(context, &token_info);
if (lexer_result != P_SUCCESS)
{
result = lexer_result;