Closed ssilnicki-dev closed 9 months ago
this fix works for me:
expression_ptr text_input_buffer::parse_expression(bool stopAtParen)
{
next_token();
unsigned long long leftVal;
expression_ptr lhs;
source_location l = location();
switch (*(*this))
{
case '\'':
consume('\'');
if(!consume_char_literal(leftVal))
{
return nullptr;
}
lhs.reset(new terminal_expr(l, leftVal));
skip_to('\'');
if (!consume('\''))
{
return nullptr;
}
break;
case '0'...'9':
if (!consume_integer(leftVal))
{
return nullptr;
}
lhs.reset(new terminal_expr(l, leftVal));
break;
is it a reasonable approach?
Looks good to me.
may I issue a PR?
may I issue a PR?
Yes please.
It appears, that STM uses char literals in their DTS to resolve GPIO id:
https://github.com/freebsd/freebsd-src/blob/a69b6af2024fdd501b4bbc674092fb2b6d466364/sys/contrib/device-tree/src/arm/stm32mp15-pinctrl.dtsi#L11
When compiling corresponding DTB under FBSD source tree, dtc fails with the following errors: