Implemented operators and better indexing
This commit is contained in:
@@ -143,3 +143,13 @@ type VariableReferenceValue struct {
|
||||
|
||||
func (v *VariableReferenceValue) Pos() Position { return v.Position }
|
||||
func (v *VariableReferenceValue) isValue() {}
|
||||
|
||||
type BinaryExpression struct {
|
||||
Position Position
|
||||
Left Value
|
||||
Operator Token
|
||||
Right Value
|
||||
}
|
||||
|
||||
func (b *BinaryExpression) Pos() Position { return b.Position }
|
||||
func (b *BinaryExpression) isValue() {}
|
||||
|
||||
Reference in New Issue
Block a user