Added a rudimentary FizzBuzz example
This commit is contained in:
parent
08d5f38072
commit
178d543f8f
7 changed files with 48 additions and 6 deletions
|
@ -14,7 +14,6 @@ type Scope struct {
|
|||
|
||||
// AddVariable adds a new variable to the current scope.
|
||||
func (s *Scope) AddVariable(variable *Variable) {
|
||||
variable.Depth = s.Depth
|
||||
s.Variables = append(s.Variables, variable)
|
||||
s.Use(variable.Register)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue