Skip to content

Commit

Permalink
simplify generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mgnsk committed May 18, 2023
1 parent 43a73d6 commit 94e4980
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions internal/tokentype/tokentypes-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"log"
"os"
"strings"

"github.com/iancoleman/strcase"
"github.com/mgnsk/balafon/internal/parser/token"
Expand Down Expand Up @@ -47,19 +46,8 @@ func main() {
id = "EOF"
}

// TODO: name lex tokens correctly
trimmedID := strings.Trim(id, ":")

varName := strcase.ToCamel(trimmedID)

if varName == "" {
fmt.Printf("skipping %q\n", id)
typ++
continue
}

words = append(words, word{
varName: varName,
varName: strcase.ToCamel(id),
id: id,
typ: typ,
})
Expand Down

0 comments on commit 94e4980

Please sign in to comment.