From 1bff92c52b27b9a516599e172fe9852c3d99be38 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Tue, 2 Apr 2024 11:27:13 +0200 Subject: chore: add linters and some lint fixes (#8) * chore: add linters and some lint fixes Configure some golangci-lint linters to get the code quality right. Apply the first fixes. Next step will be to add github actions to run lint and tests in github CI. * chore: more lint, fixed comments and variable names. no semantic change. * chore: add Makefile This makefile is intended to be used as a local substitute to github actions. --- parser/symbol.go | 1 + 1 file changed, 1 insertion(+) (limited to 'parser/symbol.go') diff --git a/parser/symbol.go b/parser/symbol.go index c8d89db..499e121 100644 --- a/parser/symbol.go +++ b/parser/symbol.go @@ -40,6 +40,7 @@ func symtype(s *symbol) *vm.Type { return vm.TypeOf(s.value) } +// AddSym add a new named value at memory position i in the parser symbol table. func (p *Parser) AddSym(i int, name string, v vm.Value) { p.addSym(i, name, v, symValue, nil, false) } -- cgit v1.2.3