package
Version:
v0.0.0-...-7188496
Opens a new window with list of versions in this module.
Published: Jun 23, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Add struct {
L Exp
R Exp
}
Add represents an addition operation
Eval returns the value of an Add
String returns the string representation of an Add
type Div struct {
L Exp
R Exp
}
Div represents a division operation
Eval returns the value of a Div
String returns the string representation of a Div
Exp describes a mathematical expression
type Mod struct {
L Exp
R Exp
}
Mod represents a modulus operation
Eval returns the value of a Mod
String returns the string representation of a Mod
type Mul struct {
L Exp
R Exp
}
Mul represents a multiplication operation
Eval returns the value of a Mul
String returns the string representation of a Mul
Num represent a constant number
Eval returns the value of a Num
String returns the string representation of a Num
type Pow struct {
L Exp
R Exp
}
Pow represents an exponential operation
Eval returns the value of a Pow
String returns the string representation of a Pow
type Rad struct {
L Exp
R Exp
}
Rad represents a radical operation
Eval returns the value of a Rad
String returns the string representation of a Div
type Sub struct {
L Exp
R Exp
}
Sub represents a subtraction operation
Eval returns the value of a Sub
String returns the string representation of a Sub
Source Files
¶
Click to show internal directories.
Click to hide internal directories.