aboutsummaryrefslogtreecommitdiffstats
path: root/lexer.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-10-30 19:04:42 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-10-30 19:09:35 -0700
commite4f0185460ab348d596877606b2d4a99b4c27ffb (patch)
treefcc897c977b35da6344aad7531faa4c8cf66b9b6 /lexer.go
parentaa8a935f620a053cc9c3c65587b433f3e8d3a6e9 (diff)
downloadccl-e4f0185460ab348d596877606b2d4a99b4c27ffb.tar.zst
Set the lexer as a field on parser
goos: linux goarch: amd64 pkg: roseh.moe/pkg/ccl cpu: AMD Ryzen 9 5900X 12-Core Processor │ baseline.txt │ new.txt │ │ sec/op │ sec/op vs base │ Parse-24 4.808µ ± 0% 4.739µ ± 0% -1.44% (p=0.000 n=20)
Diffstat (limited to 'lexer.go')
-rw-r--r--lexer.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/lexer.go b/lexer.go
index 6561e38..a996451 100644
--- a/lexer.go
+++ b/lexer.go
@@ -113,7 +113,3 @@ func (l *lexer) next() (token, error) {
}
return token{}, l.error("invalid lexeme")
}
-
-func newLexer(data []byte) *lexer {
- return &lexer{data: data}
-}