diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-16 00:58:38 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-16 00:58:38 +0200 |
| commit | 4b7c87a9b53f5317e9f7982bd779d53a66960bdc (patch) | |
| tree | 620168b40b3d38581cd78816cac7e9f94bec0445 /boot/parser.yy | |
| parent | 33ae72a3c73f6219be86715e8da71ed345f6077c (diff) | |
| download | elna-4b7c87a9b53f5317e9f7982bd779d53a66960bdc.tar.gz | |
Support UTF-8 strings
Diffstat (limited to 'boot/parser.yy')
| -rw-r--r-- | boot/parser.yy | 4 |
1 files changed, 2 insertions, 2 deletions
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 <std::pair<std::uint16_t, elna::boot::integer_sign>> INTEGER16 WORD16 %token <std::pair<std::uint32_t, elna::boot::integer_sign>> INTEGER32 WORD32 %token <double> FLOAT -%token <std::string> CHARACTER +%token <std::uint32_t> CHARACTER %token <std::string> STRING %token <bool> BOOLEAN %token LEFT_PAREN "(" RIGHT_PAREN ")" LEFT_SQUARE "[" RIGHT_SQUARE "]" @@ -308,7 +308,7 @@ literal: } | CHARACTER { - $$ = new boot::literal<unsigned char>(boot::make_position(@$), $1.at(0), boot::integer_sign::_unsigned); + $$ = new boot::literal<unsigned char>(boot::make_position(@$), $1, boot::integer_sign::_unsigned); } | "nil" { |
