xo-reader2: intern for DDefineExpr lhs symbol

This commit is contained in:
Roland Conybeare 2026-01-20 00:08:51 -05:00
commit 6e7524a730
3 changed files with 15 additions and 2 deletions

View file

@ -69,6 +69,10 @@ namespace xo {
/** pop syntax state machine from top of @ref stack_ **/
void pop_ssm();
/** get unique string copy of @p str. Idempotent for each @p str.
**/
const DUniqueString * intern_string(std::string_view str);
/** add variable to current local environment (innermost lexical scope) **/
void upsert_var(DVariable * var);