Skip to content
Snippets Groups Projects
Commit 707ffa6a authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Overload ASTNode::string() and ASTNode::string_view() functions

This allows to retrieve associate string for nodes whose content has been
removed while rewriting the AST. For instance expressions such as 'x*x' can be
written.

Without this change, calls to 'string()' or 'string_view()' could produce
segmentation faults when reporting syntax errors... Now these calls can never
produce errors.
parent d0ce7b8b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment