summaryrefslogtreecommitdiff
path: root/src/parse/expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/expr.cpp')
-rw-r--r--src/parse/expr.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/parse/expr.cpp b/src/parse/expr.cpp
index 37bc03e7..3dbdd1d3 100644
--- a/src/parse/expr.cpp
+++ b/src/parse/expr.cpp
@@ -1064,15 +1064,8 @@ ExprNodeP Parse_ExprVal(TokenStream& lex)
return NEWNODE( AST::ExprNode_Float, tok.floatval(), tok.datatype() );
case TOK_STRING:
return NEWNODE( AST::ExprNode_String, tok.str() );
- case TOK_BYTESTRING: {
- ::std::vector<ExprNodeP> items;
- for(char b: tok.str()) {
- items.push_back( NEWNODE( AST::ExprNode_Integer, b, CORETYPE_U8 ) );
- }
- return NEWNODE( AST::ExprNode_Array, ::std::move(items) );
- }
- // TODO: Correct type here
- return NEWNODE( AST::ExprNode_String, tok.str() );
+ case TOK_BYTESTRING:
+ return NEWNODE( AST::ExprNode_ByteString, tok.str() );
case TOK_RWORD_TRUE:
return NEWNODE( AST::ExprNode_Bool, true );
case TOK_RWORD_FALSE: