MCPcopy 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
76func NewTokenReader(tokens []*token.TokenType) *TokenReader {
77 return &TokenReader{tokens: tokens, pos: 0}
78}
79
80// Peek Pre read.
81func (t *TokenReader) Peek() *token.TokenType {

Callers 11

TestCalculatorFunction · 0.85
TestCalculator2Function · 0.85
TestCalculator3Function · 0.85
TestCalculator4Function · 0.85
TestCalculator5Function · 0.85
TestCalculator6Function · 0.85
TestCalculator7Function · 0.85
TestCalculator8Function · 0.85
TestCalculator9Function · 0.85
ArithmeticOperatorsFunction · 0.85
ParseFunction · 0.85

Calls

no outgoing calls

Tested by 9

TestCalculatorFunction · 0.68
TestCalculator2Function · 0.68
TestCalculator3Function · 0.68
TestCalculator4Function · 0.68
TestCalculator5Function · 0.68
TestCalculator6Function · 0.68
TestCalculator7Function · 0.68
TestCalculator8Function · 0.68
TestCalculator9Function · 0.68