Lex multiline comments

This commit is contained in:
2025-01-30 01:03:16 +01:00
parent 5178027d9f
commit 1b90829299
7 changed files with 339 additions and 72 deletions

View File

@ -235,6 +235,11 @@ namespace gcc
this->current_expression = build_int_cstu(elna_char_type_node, character->number());
}
void generic_visitor::visit(source::number_literal<nullptr_t> *)
{
this->current_expression = null_pointer_node;
}
void generic_visitor::visit(source::string_literal *string)
{
this->current_expression = build_string_literal(string->string().size() + 1, string->string().c_str());