Documentation ¶
Index ¶
Constants ¶
View Source
const OperatorAdd = "+"
View Source
const OperatorDiv = "/"
View Source
const OperatorMul = "*"
View Source
const OperatorSub = "-"
View Source
const T_EOF string = "T_EOF"
View Source
const T_LCLOSURE_MARK string = "T_LCLOSURE_MARK"
View Source
const T_NUMBER_MARK string = "T_NUMBER_MARK"
View Source
const T_OPER_MARK string = "T_OPER_MARK"
View Source
const T_RCLOSURE_MARK string = "T_RCLOSURE_MARK"
View Source
const T_VAR_MARK string = "T_VAR_MARK"
Variables ¶
View Source
var EOF string = "+++EOF+++"
EOF character
Functions ¶
This section is empty.
Types ¶
type Item ¶
type NumberItem ¶
type NumberItem struct {
Number interface{}
}
func (*NumberItem) BeClosure ¶
func (n *NumberItem) BeClosure()
func (*NumberItem) Float ¶
func (n *NumberItem) Float(vars []int) float64
func (*NumberItem) Int ¶
func (n *NumberItem) Int(vars []int) int
func (*NumberItem) String ¶
func (n *NumberItem) String() string
type OperationItem ¶
type OperationItem struct { FirstItem Item Operator Operator SecondItem Item // contains filtered or unexported fields }
func (*OperationItem) BeClosure ¶
func (i *OperationItem) BeClosure()
func (*OperationItem) Float ¶
func (i *OperationItem) Float(vars []int) float64
func (*OperationItem) Int ¶
func (i *OperationItem) Int(vars []int) int
func (*OperationItem) String ¶
func (i *OperationItem) String() string
Click to show internal directories.
Click to hide internal directories.