From 4e7b58e3c95d0726d777f5310fd4eca5f5f93b76 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Thu, 12 Mar 2026 23:41:21 -0500 Subject: [PATCH] xo-reader2: + op>= support --- include/xo/tokenizer2/tokentype.hpp | 2 +- src/tokenizer2/Tokenizer.cpp | 2 +- src/tokenizer2/tokentype.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/xo/tokenizer2/tokentype.hpp b/include/xo/tokenizer2/tokentype.hpp index 18857af9..a5538131 100644 --- a/include/xo/tokenizer2/tokentype.hpp +++ b/include/xo/tokenizer2/tokentype.hpp @@ -95,7 +95,7 @@ namespace xo { tk_cmple, /** great-equal @c '>=' **/ - tk_greatequal, + tk_cmpge, /** dot @c '.' **/ tk_dot, diff --git a/src/tokenizer2/Tokenizer.cpp b/src/tokenizer2/Tokenizer.cpp index 76881e7f..88f03755 100644 --- a/src/tokenizer2/Tokenizer.cpp +++ b/src/tokenizer2/Tokenizer.cpp @@ -500,7 +500,7 @@ namespace xo { log && log("rightangle or greatequal token"); if (*(ix + 1) == '=') { - tk_type = tokentype::tk_greatequal; + tk_type = tokentype::tk_cmpge; ++ix; ++ix; } else { diff --git a/src/tokenizer2/tokentype.cpp b/src/tokenizer2/tokentype.cpp index e704b38d..c9749a34 100644 --- a/src/tokenizer2/tokentype.cpp +++ b/src/tokenizer2/tokentype.cpp @@ -30,7 +30,7 @@ namespace xo { CASE(tk_rightangle); CASE(tk_cmple); - CASE(tk_greatequal); + CASE(tk_cmpge); CASE(tk_dot); CASE(tk_comma); CASE(tk_colon);