This commit is contained in:
parent
eb08b3bb37
commit
ad20fdb477
1 changed files with 3 additions and 5 deletions
|
@ -8,11 +8,9 @@ import (
|
||||||
// It is implemented as a "fat struct" for performance reasons.
|
// It is implemented as a "fat struct" for performance reasons.
|
||||||
// It contains all the fields necessary to represent all instruction types.
|
// It contains all the fields necessary to represent all instruction types.
|
||||||
type Instruction struct {
|
type Instruction struct {
|
||||||
Type Type
|
Args []*Instruction
|
||||||
Args []*Instruction
|
Int int64
|
||||||
Int int64
|
Type Type
|
||||||
Float float64
|
|
||||||
Text string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// String returns a human-readable representation of the instruction.
|
// String returns a human-readable representation of the instruction.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue