xo-reader2: + StringTable in ParserStringTable

This commit is contained in:
Roland Conybeare 2026-01-19 23:38:14 -05:00
commit 9ab828059b
5 changed files with 19 additions and 7 deletions

View file

@ -17,11 +17,14 @@ namespace xo {
namespace scm {
ParserStateMachine::ParserStateMachine(const ArenaConfig & config,
size_type max_stringtable_capacity,
obj<AAllocator> expr_alloc)
: parser_alloc_{DArena::map(config)},
: stringtable_{max_stringtable_capacity},
parser_alloc_{DArena::map(config)},
expr_alloc_{expr_alloc},
debug_flag_{config.debug_flag_}
{
}
bool

View file

@ -19,9 +19,10 @@ namespace xo {
// ----- SchematikaParser -----
SchematikaParser::SchematikaParser(const ArenaConfig & config,
size_t max_stringtable_capacity,
obj<AAllocator> expr_alloc,
bool debug_flag)
: psm_{config, expr_alloc},
: psm_{config, max_stringtable_capacity, expr_alloc},
debug_flag_{debug_flag}
{
}