Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
hidetatz committed Aug 20, 2023
1 parent a9798ee commit b7422ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ type ndStruct struct {
tok *token
name node
vars []node
fns []node
fns []node
}

func (n *ndStruct) token() *token { return n.tok }
Expand Down
3 changes: 1 addition & 2 deletions repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func repl() int {
return 1
}


t := term.NewTerminal(os.Stdin, prompt)
defer term.Restore(int(os.Stdin.Fd()), origState)
printer = t
Expand All @@ -48,7 +47,7 @@ func repl() int {
cur = ""
t = term.NewTerminal(os.Stdin, prompt)
continue
// else, terminate the repl.
// else, terminate the repl.
} else {
break
}
Expand Down
8 changes: 4 additions & 4 deletions scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type scope struct {
func newscope() *scope {
return &scope{
objs: map[string]*obj{},
structdefs: map[string]*structdef{},
structdefs: map[string]*structdef{},
blockscopes: list.New(),
}
}
Expand Down Expand Up @@ -93,13 +93,13 @@ func (s *scope) getglobobj(name string) (*obj, bool) {
}

type blockscope struct {
objs map[string]*obj
structdefs map[string]*structdef
objs map[string]*obj
structdefs map[string]*structdef
}

func newblockscope() *blockscope {
return &blockscope{
objs: map[string]*obj{},
objs: map[string]*obj{},
structdefs: map[string]*structdef{},
}
}

0 comments on commit b7422ea

Please sign in to comment.