Ran gofmt
This commit is contained in:
parent
b0068336cd
commit
a52e5d3426
1
cmd/main.go
Normal file
1
cmd/main.go
Normal file
@ -0,0 +1 @@
|
|||||||
|
package main
|
@ -118,7 +118,6 @@ func TestComparison(test *testing.T) {
|
|||||||
PUSH, 54,
|
PUSH, 54,
|
||||||
PUSH, 6,
|
PUSH, 6,
|
||||||
NEQ,
|
NEQ,
|
||||||
|
|
||||||
}, nil, test)
|
}, nil, test)
|
||||||
|
|
||||||
neqResult := machine.Pop()
|
neqResult := machine.Pop()
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
@ -25,7 +26,9 @@ func main () {
|
|||||||
machine.Register(0, read)
|
machine.Register(0, read)
|
||||||
machine.Register(1, write)
|
machine.Register(1, write)
|
||||||
err := machine.Execute(0)
|
err := machine.Execute(0)
|
||||||
if err != nil { panic(err.Error()) }
|
if err != nil {
|
||||||
|
panic(err.Error())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func read(machine *cre.Machine[int]) (stop bool) {
|
func read(machine *cre.Machine[int]) (stop bool) {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
@ -127,7 +128,9 @@ func main () {
|
|||||||
machine.Register(1, write)
|
machine.Register(1, write)
|
||||||
|
|
||||||
err := machine.Execute(0)
|
err := machine.Execute(0)
|
||||||
if err != nil { panic(err.Error()) }
|
if err != nil {
|
||||||
|
panic(err.Error())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func read(machine *cre.Machine[int]) (stop bool) {
|
func read(machine *cre.Machine[int]) (stop bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user