Added a rudimentary FizzBuzz example

This commit is contained in:
Eduard Urbach 2024-08-03 01:11:22 +02:00
parent 08d5f38072
commit 178d543f8f
Signed by: eduard
GPG key ID: 49226B848C78F6C8
7 changed files with 48 additions and 6 deletions

View file

@ -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)
}