Move ast and parser out of internal

This commit is contained in:
Elara 2023-10-30 18:38:53 -07:00
parent 7e307d8811
commit e01755bbf5
13 changed files with 292 additions and 296 deletions

View File

@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"strings" "strings"
"go.elara.ws/salix/internal/ast" "go.elara.ws/salix/ast"
) )
var ( var (

View File

@ -4,7 +4,7 @@ import (
"errors" "errors"
"reflect" "reflect"
"go.elara.ws/salix/internal/ast" "go.elara.ws/salix/ast"
) )
var ErrForTagInvalidArgs = errors.New("invalid arguments in for tag") var ErrForTagInvalidArgs = errors.New("invalid arguments in for tag")

2
go.mod
View File

@ -1,5 +1,3 @@
module go.elara.ws/salix module go.elara.ws/salix
go 1.21.2 go 1.21.2
require github.com/davecgh/go-spew v1.1.1

2
go.sum
View File

@ -1,2 +0,0 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

View File

@ -3,7 +3,7 @@ package salix
import ( import (
"errors" "errors"
"go.elara.ws/salix/internal/ast" "go.elara.ws/salix/ast"
) )
var ( var (

View File

@ -3,7 +3,7 @@ package salix
import ( import (
"errors" "errors"
"go.elara.ws/salix/internal/ast" "go.elara.ws/salix/ast"
) )
var ( var (

View File

@ -9,8 +9,8 @@ import (
"reflect" "reflect"
"strings" "strings"
"go.elara.ws/salix/internal/ast" "go.elara.ws/salix/ast"
"go.elara.ws/salix/internal/parser" "go.elara.ws/salix/parser"
) )
// NamedReader is a reader with a name // NamedReader is a reader with a name

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ package parser
import ( import (
"strconv" "strconv"
"go.elara.ws/salix/internal/ast" "go.elara.ws/salix/ast"
) )
func toAnySlice(v any) []any { func toAnySlice(v any) []any {

View File

@ -7,7 +7,7 @@ import (
"io" "io"
"reflect" "reflect"
"go.elara.ws/salix/internal/ast" "go.elara.ws/salix/ast"
) )
var ( var (

View File

@ -3,7 +3,7 @@ package salix
import ( import (
"io" "io"
"go.elara.ws/salix/internal/ast" "go.elara.ws/salix/ast"
) )
// Tag represents a tag in a Salix template // Tag represents a tag in a Salix template