From 33184c32f226bc2c01096a3ccd9ab7061ae8022d Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 03:19:13 +0000 Subject: refactor(lexer): drop redundant single-character token branches Co-Authored-By: Claude Opus 5.5 --- lib/Lexer/Lexer.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/Lexer/Lexer.cc b/lib/Lexer/Lexer.cc index 437aed4..b452695 100644 --- a/lib/Lexer/Lexer.cc +++ b/lib/Lexer/Lexer.cc @@ -333,15 +333,6 @@ int Lexer::readToken() { return tok_ellipsis; } - if (LastChar == '(') { LastChar = Input.get(); return '('; } - if (LastChar == ')') { LastChar = Input.get(); return ')'; } - if (LastChar == '[') { LastChar = Input.get(); return '['; } - if (LastChar == ']') { LastChar = Input.get(); return ']'; } - if (LastChar == ',') { LastChar = Input.get(); return ','; } - if (LastChar == '+') { LastChar = Input.get(); return '+'; } - if (LastChar == '-') { LastChar = Input.get(); return '-'; } - if (LastChar == '*') { LastChar = Input.get(); return '*'; } - if (LastChar == '/') { int NextChar = Input.get(); if (NextChar == '/') { -- cgit v1.3.1-4-g156e