Arithmetic evaluation: Difference between revisions

Content added Content deleted
Line 1,155: Line 1,155:


<lang dyalect>type Expr = Bin(op, Expr left, Expr right) or Literal(Float val)
<lang dyalect>type Expr = Bin(op, Expr left, Expr right) or Literal(Float val)
with Lookup
type Token(val, Char kind)

type Token(val, Char kind) with Lookup
func Token.ToString() => this.val.ToString()
func Token.ToString() => this.val.ToString()