diff options
Diffstat (limited to 'crowbar_reference_compiler/ast.py')
-rw-r--r-- | crowbar_reference_compiler/ast.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crowbar_reference_compiler/ast.py b/crowbar_reference_compiler/ast.py index 2a6963c..bb5a4e1 100644 --- a/crowbar_reference_compiler/ast.py +++ b/crowbar_reference_compiler/ast.py @@ -530,7 +530,8 @@ class ASTBuilder(NodeVisitor): return ConstantExpression(body.data) if body.type in ['true', 'false']: return ConstantExpression(body.type) - raise NotImplementedError() + if body.type == 'string_literal': + return ConstantExpression(body.data) def visit_StructPointerElementSuffix(self, node, visited_children): separator, element = visited_children |