hyc

Hydrogen Compiler written in C
git clone git://git.kocotian.pl/hyc.git
Log | Files | Refs | README | LICENSE

commit 8657048a41ff49ff812675afb19d6a5a06e6ffbb
parent ef04ac4a9456e7a13af1a7c21155a8b1a3459b6b
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri, 30 Jul 2021 21:17:59 +0000

String Literal without quotes

Diffstat:
Mast.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ast.c b/ast.c @@ -110,7 +110,7 @@ tokenstoASTExpressionLiteral(Tokenizer *t) expr.Literal.value = Strdup(tok->str).data; } else if (tok->type == TokenString) { expr.type = ASTExpressionLiteralString_T; - expr.Literal.value = Strdup(tok->str).data; + expr.Literal.value = Strdup((String){tok->str.data + 1, tok->str.len - 2}).data; } return expr;