Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crossoverJie/gscript
/ NewTokenReader
Function
NewTokenReader
syntax/syntax.go:76–78 ·
view source on GitHub ↗
(tokens []*token.TokenType)
Source
from the content-addressed store, hash-verified
74
}
75
76
func
NewTokenReader(tokens []*token.TokenType) *TokenReader {
77
return
&TokenReader{tokens: tokens, pos: 0}
78
}
79
80
// Peek Pre read.
81
func
(t *TokenReader) Peek() *token.TokenType {
Callers
11
TestCalculator
Function · 0.85
TestCalculator2
Function · 0.85
TestCalculator3
Function · 0.85
TestCalculator4
Function · 0.85
TestCalculator5
Function · 0.85
TestCalculator6
Function · 0.85
TestCalculator7
Function · 0.85
TestCalculator8
Function · 0.85
TestCalculator9
Function · 0.85
ArithmeticOperators
Function · 0.85
Parse
Function · 0.85
Calls
no outgoing calls
Tested by
9
TestCalculator
Function · 0.68
TestCalculator2
Function · 0.68
TestCalculator3
Function · 0.68
TestCalculator4
Function · 0.68
TestCalculator5
Function · 0.68
TestCalculator6
Function · 0.68
TestCalculator7
Function · 0.68
TestCalculator8
Function · 0.68
TestCalculator9
Function · 0.68