Beispiel #1
0
func (exec Execute) resolveBothExpressions(n ast.DoubleTermNode) (left, right interface{}) {
	lt := n.LeftTerm()
	rt := n.RightTerm()

	left = exec.resolveExpression(lt)
	right = exec.resolveExpression(rt)

	return left, right
}
Beispiel #2
0
func (exec Execute) resolveBothStringNodes(n ast.DoubleTermNode) (left,
	right string) {
	lt := n.LeftTerm()
	rt := n.RightTerm()

	left = exec.resolveStringNode(lt)
	right = exec.resolveStringNode(rt)

	return left, right
}
Beispiel #3
0
func (exec Execute) resolveBothMathNodes(n ast.DoubleTermNode) (left,
	right float32) {
	lt := n.LeftTerm()
	rt := n.RightTerm()

	left = exec.resolveMathNode(lt)
	right = exec.resolveMathNode(rt)

	return left, right
}