MCPcopy
hub / github.com/adonovan/gopl.io / binary

Struct binary

ch7/eval/ast.go:29–32  ·  view source on GitHub ↗

A binary represents a binary operator expression, e.g., x+y.

Source from the content-addressed store, hash-verified

27
28// A binary represents a binary operator expression, e.g., x+y.
29type binary struct {
30 op rune // one of '+', '-', '*', '/'
31 x, y Expr
32}
33
34// A call represents a function call expression, e.g., sin(x).
35type call struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected