loom
1/*
2MIT License
3
4Copyright (c) 2021 МГТУ им. Н.Э. Баумана, кафедра ИУ-6, Михаил Фетисов,
5
6https://bmstu.codes/lsx/simodo
7*/
8
9#include "simodo/inout/token/RdpBaseSugar.h"
10#include "simodo/inout/format/fmt.h"
11
12namespace simodo::inout
13{
14bool RdpBaseSugar::reportUnexpected(const Token & t, const std::string & expected) const
15{
16_m.reportError(t.makeLocation(_files),
17// u"Irrelevant symbol '" + t.lexeme() + u"'" + (expected.empty() ? u"" : u", expected: " + expected));
18fmt("Irrelevant symbol '%1'%2")
19.arg(t.lexeme())
20.arg(expected.empty() ? "" : ", expected: %3")
21.arg(expected));
22
23return false;
24}
25
26}