Implement first intrinsics for output

This commit is contained in:
2024-03-20 17:56:38 +01:00
parent c210c55a17
commit a78e08521e
13 changed files with 221 additions and 214 deletions

View File

@ -350,10 +350,6 @@ namespace elna::source
{
tokens.emplace_back(token::type::comma, iterator.position());
}
else if (*iterator == '?')
{
tokens.emplace_back(token::type::question_mark, iterator.position());
}
else if (*iterator == '.')
{
tokens.emplace_back(token::type::dot, iterator.position());
@ -407,6 +403,10 @@ namespace elna::source
{
tokens.emplace_back(token::type::boolean, 0, iterator.position());
}
else if (word == "proc")
{
tokens.emplace_back(token::type::procedure, 0, iterator.position());
}
else
{
tokens.emplace_back(token::type::identifier, word.c_str(), iterator.position());