diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 03:36:06 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 04:05:50 +0000 |
| commit | 0b87ded993d59450ab70ade6e4ce154da65948a3 (patch) | |
| tree | 0d3fae11e72efb52da9b4fa86b06fe5db3bbd120 /lib/Parser/ParserFunction.cc | |
| parent | eba981b4f515010f8f6e9602c563d2074d8bd915 (diff) | |
refactor(parser): remove dead token return, precedence check and includes
getNextToken() now returns void since no caller reads its result, and
GetTokPrecedence() does a single map lookup without the unreachable
non-positive precedence check. Unused <cstdio>, <set> and FunctionAST.h
includes are dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/Parser/ParserFunction.cc')
| -rw-r--r-- | lib/Parser/ParserFunction.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Parser/ParserFunction.cc b/lib/Parser/ParserFunction.cc index 823e17f..f5ebee1 100644 --- a/lib/Parser/ParserFunction.cc +++ b/lib/Parser/ParserFunction.cc @@ -2,7 +2,6 @@ #include "cps/Parser.h" #include "cps/FunctionAST.h" #include "cps/Operator.h" -#include <cstdio> using namespace cps; |
