Made the interpreter pass most of the mycology test suite
This commit is contained in:
parent
198efceb1f
commit
da7e7dae2b
13 changed files with 206 additions and 35 deletions
|
@ -23,6 +23,9 @@ func (s *Stack) Clear() {
|
|||
func (s *Stack) Duplicate() {
|
||||
if s.height > 0 {
|
||||
s.Push(s.data[s.height-1])
|
||||
} else {
|
||||
s.Push(0)
|
||||
s.Push(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue