Commit 9d67e5a1 authored by dbarbera's avatar dbarbera
Browse files

Added string literal generatioN

parent 10210a70
......@@ -302,6 +302,9 @@ def _generate_write(params):
false_str_ptr = g.builder.gep(false_str_val, [zero, zero])
str_ptr =, true_str_ptr, false_str_ptr), [str_ptr])
elif basic_ty.kind == 'StringType':
expr_ptr = g.builder.gep(expr_val, [zero, zero]), [expr_ptr])
raise NotImplementedError
......@@ -574,7 +577,7 @@ def _empty_string(primary):
def _string_literal(primary):
''' Generate code for a string (Octet String) '''
raise NotImplementedError
return _get_string_cons(str(primary.value[1:-1]))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment