Mark @ nodes addressable
This commit is contained in:
@ -962,7 +962,7 @@ namespace source
|
||||
case binary_operator::equals:
|
||||
return "=";
|
||||
case binary_operator::not_equals:
|
||||
return "/=";
|
||||
return "<>";
|
||||
case binary_operator::less:
|
||||
return "<";
|
||||
case binary_operator::less_equal:
|
||||
|
@ -149,7 +149,7 @@ sizeof {
|
||||
return yy::parser::make_CHARACTER(std::string(yytext, 1, 1), this->location);
|
||||
}
|
||||
}
|
||||
'\\x[0-9a-fA-F]{1,2}' {
|
||||
'\\x[0-9a-fA-F]{1,2}' {
|
||||
char character = static_cast<char>(std::stoi(yytext + 3, nullptr, 16));
|
||||
|
||||
return yy::parser::make_CHARACTER(std::string(&character, 1), this->location);
|
||||
@ -178,14 +178,14 @@ sizeof {
|
||||
std::size_t processed;
|
||||
char character = static_cast<char>(std::stoi(current_position, &processed, 16));
|
||||
if (processed == 0)
|
||||
{
|
||||
REJECT;
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
REJECT;
|
||||
}
|
||||
else
|
||||
{
|
||||
current_position += processed - 1;
|
||||
result.push_back(character);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (*current_position == '\\')
|
||||
{
|
||||
@ -193,13 +193,13 @@ sizeof {
|
||||
|
||||
std::optional<char> escape = source::escape_char(*current_position);
|
||||
if (escape.has_value())
|
||||
{
|
||||
{
|
||||
result.push_back(escape.value());
|
||||
}
|
||||
else
|
||||
{
|
||||
REJECT;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
REJECT;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user