From f0cd32c05f3c2ac1d7e3d29eb520215ba4958b55 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 27 Jan 2026 15:50:10 -0500 Subject: [PATCH] xo-reader2: support if-then-else expressions. + detailed utest --- include/xo/tokenizer2/Token.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/xo/tokenizer2/Token.hpp b/include/xo/tokenizer2/Token.hpp index cc6e13d9..38e73902 100644 --- a/include/xo/tokenizer2/Token.hpp +++ b/include/xo/tokenizer2/Token.hpp @@ -137,6 +137,8 @@ namespace xo { static Token lambda() { return Token(tokentype::tk_lambda); } /** token representing keyword @c if **/ static Token if_token() { return Token(tokentype::tk_if); } + /** token representing keyword @c then **/ + static Token then_token() { return Token(tokentype::tk_then); } /** token representing keyword @c else **/ static Token else_token() { return Token(tokentype::tk_else); } /** token representing keyword @c let **/