Skip to content

Commit

Permalink
Renames goast to github.com/mtresnik/goast
Browse files Browse the repository at this point in the history
  • Loading branch information
mtresnik committed Jun 7, 2024
1 parent 9cbc8a8 commit 228aa92
Show file tree
Hide file tree
Showing 35 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module goast
module github.com/mtresnik/goast

go 1.22.3
8 changes: 4 additions & 4 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package main

import (
"fmt"
"goast/pkg/operations/constants"
"goast/pkg/operations/functions"
"goast/pkg/operations/parser"
"goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/functions"
"github.com/mtresnik/goast/pkg/operations/parser"
"github.com/mtresnik/goast/pkg/operations/variables"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/constants/constant.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package constants

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
)

type Constant struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/operations/constants/constant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package constants

import (
"fmt"
"goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/abs.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/addition.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/operations/functions/addition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package functions

import (
"fmt"
"goast/pkg/operations"
"goast/pkg/operations/constants"
"goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/variables"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/arccos.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/arcsin.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/arctan.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/cos.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/division.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/operations/functions/functions.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/operations/constants"
"goast/pkg/operations/variables"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/utils"
)

var runtimeFunctions = map[string]FunctionBuilder{
Expand Down
6 changes: 3 additions & 3 deletions pkg/operations/functions/functions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package functions

import (
"fmt"
"goast/pkg/operations"
"goast/pkg/operations/constants"
"goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/variables"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/log.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/multiplication.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/operations/functions/multiplication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package functions

import (
"fmt"
"goast/pkg/operations"
"goast/pkg/operations/constants"
"goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/variables"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/negation.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/operations/functions/negation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package functions

import (
"fmt"
"goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/constants"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/parentheses.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/operations/functions/parentheses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package functions

import (
"fmt"
"goast/pkg/operations"
"goast/pkg/operations/constants"
"goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/variables"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/power.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/power_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package functions

import (
"fmt"
"goast/pkg/operations/constants"
"goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/variables"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/sin.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/subtraction.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/operations/functions/subtraction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package functions

import (
"fmt"
"goast/pkg/operations"
"goast/pkg/operations/constants"
"goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/variables"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/operations/functions/tan.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package functions

import (
"goast/pkg/operations"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/utils"
"math/cmplx"
)

Expand Down
12 changes: 6 additions & 6 deletions pkg/operations/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package parser

import (
"fmt"
"goast/pkg/operations"
"goast/pkg/operations/constants"
"goast/pkg/operations/functions"
"goast/pkg/operations/parser/tokens"
"goast/pkg/operations/variables"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/functions"
"github.com/mtresnik/goast/pkg/operations/parser/tokens"
"github.com/mtresnik/goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/utils"
"slices"
"sort"
"strconv"
Expand Down
6 changes: 3 additions & 3 deletions pkg/operations/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package parser

import (
"fmt"
"goast/pkg/operations/constants"
"goast/pkg/operations/functions"
"goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/operations/constants"
"github.com/mtresnik/goast/pkg/operations/functions"
"github.com/mtresnik/goast/pkg/operations/variables"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/operations/parser/stress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package parser

import (
"fmt"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/utils"
"strconv"
"testing"
"time"
Expand Down
6 changes: 3 additions & 3 deletions pkg/operations/parser/tokens/tokenizer.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package tokens

import (
"goast/pkg/operations/functions"
"goast/pkg/operations/variables"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/operations/functions"
"github.com/mtresnik/goast/pkg/operations/variables"
"github.com/mtresnik/goast/pkg/utils"
"slices"
"strings"
"unicode/utf8"
Expand Down
2 changes: 1 addition & 1 deletion pkg/operations/parser/tokens/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tokens

import (
"fmt"
"goast/pkg/utils"
"github.com/mtresnik/goast/pkg/utils"
"sort"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/operations/variables/variable.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package variables

import (
"goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations"
"math/cmplx"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/operations/variables/variable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package variables

import (
"fmt"
"goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/operations/variables/variables.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package variables

import (
"goast/pkg/operations"
"github.com/mtresnik/goast/pkg/operations"
"strconv"
)

Expand Down

0 comments on commit 228aa92

Please sign in to comment.