Skip to content

Commit 4f9e29a

Browse files
authored
Merge pull request #62 from yoheimuta/publicize-lexer
Publicize lexer and scanner
2 parents 4c2738a + bb2bd82 commit 4f9e29a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+51
-49
lines changed

.idea/watcherTasks.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/lexer/constant.go renamed to lexer/constant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package lexer
33
import (
44
"strings"
55

6-
"github.com/yoheimuta/go-protoparser/v4/internal/lexer/scanner"
6+
"github.com/yoheimuta/go-protoparser/v4/lexer/scanner"
77
)
88

99
// ReadConstant reads a constant. If permissive is true, accepts multiline string literals.

internal/lexer/constant_test.go renamed to lexer/constant_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/yoheimuta/go-protoparser/v4/internal/lexer"
7+
"github.com/yoheimuta/go-protoparser/v4/lexer"
88
)
99

1010
func TestLexer2_ReadConstant(t *testing.T) {

internal/lexer/emptyStatement.go renamed to lexer/emptyStatement.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package lexer
22

3-
import "github.com/yoheimuta/go-protoparser/v4/internal/lexer/scanner"
3+
import (
4+
"github.com/yoheimuta/go-protoparser/v4/lexer/scanner"
5+
)
46

57
// ReadEmptyStatement reads an emptyStatement.
68
// emptyStatement = ";"

internal/lexer/emptyStatement_test.go renamed to lexer/emptyStatement_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/yoheimuta/go-protoparser/v4/internal/lexer"
7+
"github.com/yoheimuta/go-protoparser/v4/lexer"
88
)
99

1010
func TestLexer2_ReadEmptyStatement(t *testing.T) {

internal/lexer/enumType.go renamed to lexer/enumType.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package lexer
22

3-
import "github.com/yoheimuta/go-protoparser/v4/internal/lexer/scanner"
3+
import "github.com/yoheimuta/go-protoparser/v4/lexer/scanner"
44

55
// ReadEnumType reads a messageType.
66
// enumType = [ "." ] { ident "." } enumName

internal/lexer/enumType_test.go renamed to lexer/enumType_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/yoheimuta/go-protoparser/v4/internal/lexer"
7+
"github.com/yoheimuta/go-protoparser/v4/lexer"
88
)
99

1010
func TestLexer2_ReadEnumType(t *testing.T) {
File renamed without changes.

internal/lexer/fullIdent.go renamed to lexer/fullIdent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package lexer
22

3-
import "github.com/yoheimuta/go-protoparser/v4/internal/lexer/scanner"
3+
import "github.com/yoheimuta/go-protoparser/v4/lexer/scanner"
44

55
// ReadFullIdent reads a fullIdent.
66
// fullIdent = ident { "." ident }

internal/lexer/fullIdent_test.go renamed to lexer/fullIdent_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"testing"
66

7-
"github.com/yoheimuta/go-protoparser/v4/internal/lexer"
7+
"github.com/yoheimuta/go-protoparser/v4/lexer"
88
)
99

1010
func TestLexer2_ReadFullIdent(t *testing.T) {

0 commit comments

Comments
 (0)