Skip to content

Commit 028aac0

Browse files
committed
Improve error diagnostics
1 parent 5cfa743 commit 028aac0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

include/iris/x4/directive/lexeme.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <iris/x4/core/skip_over.hpp>
1515
#include <iris/x4/core/parser.hpp>
1616

17+
#include <format>
1718
#include <iterator>
1819
#include <type_traits>
1920
#include <utility>
@@ -43,6 +44,11 @@ struct lexeme_directive : proxy_parser<Subject, lexeme_directive<Subject>>
4344
attr
4445
);
4546
}
47+
48+
[[nodiscard]] constexpr std::string get_x4_info() const
49+
{
50+
return std::format("lexeme[{}]", get_info<Subject>{}(this->subject));
51+
}
4652
};
4753

4854
namespace detail {

0 commit comments

Comments
 (0)