From b6258d36b6534d521e9cdf1307665c38e5ae409d Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 5 Nov 2020 01:27:58 -0700 Subject: compile based on the fancy new AST --- crowbar_reference_compiler/ast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crowbar_reference_compiler/ast.py') 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 -- cgit v1.2.3