Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AfterShip/clickhouse-sql-parser
/ NewParser
Function
NewParser
parser/parser_common.go:13–17 ·
view source on GitHub ↗
(buffer string)
Source
from the content-addressed store, hash-verified
11
}
12
13
func
NewParser(buffer string) *Parser {
14
return
&Parser{
15
lexer: NewLexer(buffer),
16
}
17
}
18
19
func
(p *Parser) lastTokenKind() TokenKind {
20
if
p.last() == nil {
Callers
15
TestFormatter_WithIndent_CustomIndentation
Function · 0.85
validFormatSQL
Function · 0.85
TestParser_InvalidSyntax
Function · 0.85
TestWalk_BasicTraversal
Function · 0.85
TestWalk_JoinExpr
Function · 0.85
TestWalkWithBreak_EarlyTermination
Function · 0.85
TestFind_FirstMatch
Function · 0.85
TestFindAll_MultipleMatches
Function · 0.85
TestWalk_TableIdentifierRewriting
Function · 0.85
TestWalk_OrderByDirectionRewriting
Function · 0.85
TestWalk_NestedQueryDepthTracking
Function · 0.85
TestWalk_SimpleNodeCounting
Function · 0.85
Calls
1
NewLexer
Function · 0.85
Tested by
15
TestFormatter_WithIndent_CustomIndentation
Function · 0.68
validFormatSQL
Function · 0.68
TestParser_InvalidSyntax
Function · 0.68
TestWalk_BasicTraversal
Function · 0.68
TestWalk_JoinExpr
Function · 0.68
TestWalkWithBreak_EarlyTermination
Function · 0.68
TestFind_FirstMatch
Function · 0.68
TestFindAll_MultipleMatches
Function · 0.68
TestWalk_TableIdentifierRewriting
Function · 0.68
TestWalk_OrderByDirectionRewriting
Function · 0.68
TestWalk_NestedQueryDepthTracking
Function · 0.68
TestWalk_SimpleNodeCounting
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…