Skip to content

Commit 0f8eb41

Browse files
committed
Move grammar to internal package.
1 parent 367406a commit 0f8eb41

26 files changed

Lines changed: 20 additions & 20 deletions

attrexp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"github.com/di-wu/parser"
66
"github.com/di-wu/parser/ast"
7-
"github.com/scim2/filter-parser/v2/grammar"
8-
"github.com/scim2/filter-parser/v2/types"
7+
"github.com/scim2/filter-parser/v2/internal/grammar"
8+
"github.com/scim2/filter-parser/v2/internal/types"
99
"strconv"
1010
"strings"
1111
)

attrexp_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package filter
33
import (
44
"fmt"
55
"github.com/di-wu/parser/ast"
6-
"github.com/scim2/filter-parser/v2/grammar"
6+
"github.com/scim2/filter-parser/v2/internal/grammar"
77
"testing"
88
)
99

attrpath.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package filter
33
import (
44
"github.com/di-wu/parser"
55
"github.com/di-wu/parser/ast"
6-
"github.com/scim2/filter-parser/v2/grammar"
7-
"github.com/scim2/filter-parser/v2/types"
6+
"github.com/scim2/filter-parser/v2/internal/grammar"
7+
"github.com/scim2/filter-parser/v2/internal/types"
88
"strings"
99
)
1010

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package filter
22

33
import (
44
"fmt"
5-
"github.com/scim2/filter-parser/v2/types"
5+
"github.com/scim2/filter-parser/v2/internal/types"
66
)
77

88
func invalidChildTypeError(parentTyp, invalidType int) error {

filter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package filter
33
import (
44
"github.com/di-wu/parser"
55
"github.com/di-wu/parser/ast"
6-
"github.com/scim2/filter-parser/v2/grammar"
7-
"github.com/scim2/filter-parser/v2/types"
6+
"github.com/scim2/filter-parser/v2/internal/grammar"
7+
"github.com/scim2/filter-parser/v2/internal/types"
88
)
99

1010
// ParseFilter parses the given raw data as an Expression.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/di-wu/parser"
55
"github.com/di-wu/parser/ast"
66
"github.com/di-wu/parser/op"
7-
"github.com/scim2/filter-parser/v2/types"
7+
"github.com/scim2/filter-parser/v2/internal/types"
88
)
99

1010
func AttrExp(p *ast.Parser) (*ast.Node, error) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/di-wu/parser"
55
"github.com/di-wu/parser/ast"
66
"github.com/di-wu/parser/op"
7-
"github.com/scim2/filter-parser/v2/types"
7+
"github.com/scim2/filter-parser/v2/internal/types"
88
)
99

1010
func Filter(p *ast.Parser) (*ast.Node, error) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/di-wu/parser"
55
"github.com/di-wu/parser/ast"
66
"github.com/di-wu/parser/op"
7-
"github.com/scim2/filter-parser/v2/types"
7+
"github.com/scim2/filter-parser/v2/internal/types"
88
)
99

1010
func Digits(p *ast.Parser) (*ast.Node, error) {

0 commit comments

Comments
 (0)