From 4b7c87a9b53f5317e9f7982bd779d53a66960bdc Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 16 Aug 2026 00:58:38 +0200 Subject: Support UTF-8 strings --- boot/parser.yy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot/parser.yy') diff --git a/boot/parser.yy b/boot/parser.yy index b48510b..1b3005e 100644 --- a/boot/parser.yy +++ b/boot/parser.yy @@ -83,7 +83,7 @@ along with GCC; see the file COPYING3. If not see %token > INTEGER16 WORD16 %token > INTEGER32 WORD32 %token FLOAT -%token CHARACTER +%token CHARACTER %token STRING %token BOOLEAN %token LEFT_PAREN "(" RIGHT_PAREN ")" LEFT_SQUARE "[" RIGHT_SQUARE "]" @@ -308,7 +308,7 @@ literal: } | CHARACTER { - $$ = new boot::literal(boot::make_position(@$), $1.at(0), boot::integer_sign::_unsigned); + $$ = new boot::literal(boot::make_position(@$), $1, boot::integer_sign::_unsigned); } | "nil" { -- cgit v1.2.3