xo-reader2: + StringTable in ParserStringTable
This commit is contained in:
parent
535f48e202
commit
9ab828059b
5 changed files with 19 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue