Skip to content

Commit

Permalink
rename pkg name
Browse files Browse the repository at this point in the history
  • Loading branch information
goropikari committed Aug 28, 2022
1 parent 5856443 commit 2f793fc
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion automata/dfa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/goccy/go-graphviz"
"github.com/goropikari/golex/automata"
"github.com/goropikari/golex/compile/regexp"
"github.com/goropikari/golex/compiler/regexp"
"github.com/stretchr/testify/require"
)

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions compile/golex/golex.go → compiler/lex/golex.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package golex
package lex

import (
"bufio"
Expand All @@ -11,7 +11,7 @@ import (

"github.com/goropikari/golex/automata"
"github.com/goropikari/golex/collection"
"github.com/goropikari/golex/compile/regexp"
"github.com/goropikari/golex/compiler/regexp"
"golang.org/x/tools/imports"
)

Expand Down
2 changes: 1 addition & 1 deletion compile/golex/parser.go → compiler/lex/parser.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package golex
package lex

import (
"bufio"
Expand Down
2 changes: 1 addition & 1 deletion compile/golex/template.go → compiler/lex/template.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package golex
package lex

const tmpl = `
package {{ .PackageName }}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package regexp_test
import (
"testing"

"github.com/goropikari/golex/compile/regexp"
"github.com/goropikari/golex/compiler/regexp"
"github.com/stretchr/testify/require"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package regexp_test
import (
"testing"

"github.com/goropikari/golex/compile/regexp"
"github.com/goropikari/golex/compiler/regexp"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"os"

"github.com/goropikari/golex/compile/golex"
"github.com/goropikari/golex/compiler/lex"
)

var (
Expand All @@ -26,5 +26,5 @@ func main() {
log.Fatal(err)
}
r := bufio.NewReader(f)
golex.Generate(r, pkgName, outfile)
lex.Generate(r, pkgName, outfile)
}

0 comments on commit 2f793fc

Please sign in to comment.