MCPcopy Create free account
hub / github.com/crossoverJie/gscript / Read

Method Read

syntax/syntax.go:89–96  ·  view source on GitHub ↗

Read read from token stream.

()

Source from the content-addressed store, hash-verified

87
88// Read read from token stream.
89func (t *TokenReader) Read() *token.TokenType {
90 if int(t.pos) >= len(t.tokens) {
91 return nil
92 }
93 tokenType := t.tokens[t.pos]
94 t.pos += 1
95 return tokenType
96}
97
98func (t *TokenReader) UnRead() {
99 if t.pos > 0 {

Callers 6

IntDeclareFunction · 0.80
AdditiveLoopFunction · 0.80
MultiplicativeLoopFunction · 0.80
PrimaryFunction · 0.80
ExpressionStatementFunction · 0.80
AssignmentStatementFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected