diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 03:19:13 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 03:58:26 +0000 |
| commit | 33184c32f226bc2c01096a3ccd9ab7061ae8022d (patch) | |
| tree | 78965f7a288ac0aae9e7a0e9b2049c545d7e535f | |
| parent | 927950e552b37165327c587818c03d5f45d2c161 (diff) | |
refactor(lexer): drop redundant single-character token branches
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | lib/Lexer/Lexer.cc | 9 |
1 files changed, 0 insertions, 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 == '/') { |
