MCPcopy Create free account
hub / github.com/dengsgo/math-engine / getTokPrecedence

Method getTokPrecedence

engine/ast.go:101–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101func (a *AST) getTokPrecedence() int {
102 if p, ok := precedence[a.currTok.Tok]; ok {
103 return p
104 }
105 return -1
106}
107
108func (a *AST) parseNumber() NumberExprAST {
109 f64, err := strconv.ParseFloat(a.currTok.Tok, 64)

Callers 1

parseBinOpRHSMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected