Skip to content

Commit

Permalink
Revert "antonmedv -> techdroplabs"
Browse files Browse the repository at this point in the history
This reverts commit e1a90da.
  • Loading branch information
demoore committed Oct 24, 2024
1 parent e1a90da commit a71a771
Show file tree
Hide file tree
Showing 35 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion ast/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"regexp"

"github.com/techdroplabs/expr/file"
"github.com/antonmedv/expr/file"
)

// Node represents items of abstract syntax tree.
Expand Down
2 changes: 1 addition & 1 deletion ast/visitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ast_test
import (
"testing"

"github.com/techdroplabs/expr/ast"
"github.com/antonmedv/expr/ast"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package expr_test
import (
"testing"

"github.com/techdroplabs/expr"
"github.com/techdroplabs/expr/vm"
"github.com/antonmedv/expr"
"github.com/antonmedv/expr/vm"
)

func Benchmark_expr(b *testing.B) {
Expand Down
8 changes: 4 additions & 4 deletions checker/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"reflect"

"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/conf"
"github.com/techdroplabs/expr/file"
"github.com/techdroplabs/expr/parser"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/conf"
"github.com/antonmedv/expr/file"
"github.com/antonmedv/expr/parser"
)

var errorType = reflect.TypeOf((*error)(nil)).Elem()
Expand Down
10 changes: 5 additions & 5 deletions checker/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"testing"
"time"

"github.com/techdroplabs/expr"
"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/checker"
"github.com/techdroplabs/expr/conf"
"github.com/techdroplabs/expr/parser"
"github.com/antonmedv/expr"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/checker"
"github.com/antonmedv/expr/conf"
"github.com/antonmedv/expr/parser"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion checker/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package checker
import (
"reflect"

"github.com/techdroplabs/expr/ast"
"github.com/antonmedv/expr/ast"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions cmd/exe/debugger.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strings"
"time"

"github.com/techdroplabs/expr/checker"
"github.com/techdroplabs/expr/compiler"
"github.com/techdroplabs/expr/optimizer"
"github.com/techdroplabs/expr/parser"
. "github.com/techdroplabs/expr/vm"
"github.com/antonmedv/expr/checker"
"github.com/antonmedv/expr/compiler"
"github.com/antonmedv/expr/optimizer"
"github.com/antonmedv/expr/parser"
. "github.com/antonmedv/expr/vm"
"github.com/gdamore/tcell"
"github.com/rivo/tview"
"github.com/sanity-io/litter"
Expand Down
2 changes: 1 addition & 1 deletion cmd/exe/dot.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

. "github.com/techdroplabs/expr/ast"
. "github.com/antonmedv/expr/ast"
)

const format = `digraph {
Expand Down
14 changes: 7 additions & 7 deletions cmd/exe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import (
"bufio"
"flag"
"fmt"
"github.com/techdroplabs/expr/ast"
"github.com/antonmedv/expr/ast"
"io/ioutil"
"os"

"github.com/techdroplabs/expr"
"github.com/techdroplabs/expr/checker"
"github.com/techdroplabs/expr/compiler"
"github.com/techdroplabs/expr/optimizer"
"github.com/techdroplabs/expr/parser"
"github.com/techdroplabs/expr/vm"
"github.com/antonmedv/expr"
"github.com/antonmedv/expr/checker"
"github.com/antonmedv/expr/compiler"
"github.com/antonmedv/expr/optimizer"
"github.com/antonmedv/expr/parser"
"github.com/antonmedv/expr/vm"
"github.com/sanity-io/litter"
)

Expand Down
10 changes: 5 additions & 5 deletions compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"math"
"reflect"

"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/conf"
"github.com/techdroplabs/expr/file"
"github.com/techdroplabs/expr/parser"
. "github.com/techdroplabs/expr/vm"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/conf"
"github.com/antonmedv/expr/file"
"github.com/antonmedv/expr/parser"
. "github.com/antonmedv/expr/vm"
)

func Compile(tree *parser.Tree, config *conf.Config) (program *Program, err error) {
Expand Down
8 changes: 4 additions & 4 deletions compiler/compiler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"reflect"
"testing"

"github.com/techdroplabs/expr/compiler"
"github.com/techdroplabs/expr/conf"
"github.com/techdroplabs/expr/parser"
"github.com/techdroplabs/expr/vm"
"github.com/antonmedv/expr/compiler"
"github.com/antonmedv/expr/conf"
"github.com/antonmedv/expr/parser"
"github.com/antonmedv/expr/vm"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions compiler/patcher.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package compiler

import (
"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/conf"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/conf"
)

type operatorPatcher struct {
Expand Down
4 changes: 2 additions & 2 deletions conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"reflect"

"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/vm"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/vm"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"strings"

"github.com/techdroplabs/expr/conf"
"github.com/antonmedv/expr/conf"
)

// Kind can be any of array, map, struct, func, string, int, float, bool or any.
Expand Down
2 changes: 1 addition & 1 deletion docgen/docgen_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package docgen_test

import (
. "github.com/techdroplabs/expr/docgen"
. "github.com/antonmedv/expr/docgen"
"github.com/sanity-io/litter"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/dates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/techdroplabs/expr"
"github.com/antonmedv/expr"
"github.com/stretchr/testify/require"
)

Expand Down
16 changes: 8 additions & 8 deletions expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ package expr

import (
"fmt"
"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/file"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/file"
"reflect"

"github.com/techdroplabs/expr/checker"
"github.com/techdroplabs/expr/compiler"
"github.com/techdroplabs/expr/conf"
"github.com/techdroplabs/expr/optimizer"
"github.com/techdroplabs/expr/parser"
"github.com/techdroplabs/expr/vm"
"github.com/antonmedv/expr/checker"
"github.com/antonmedv/expr/compiler"
"github.com/antonmedv/expr/conf"
"github.com/antonmedv/expr/optimizer"
"github.com/antonmedv/expr/parser"
"github.com/antonmedv/expr/vm"
)

// Option for configuring config.
Expand Down
6 changes: 3 additions & 3 deletions expr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"testing"
"time"

"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/file"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/file"

"github.com/techdroplabs/expr"
"github.com/antonmedv/expr"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions file/source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func TestStringSource_SnippetSingleLine(t *testing.T) {
t.Errorf(unexpectedSnippet, t.Name(), str, "hello, world")
}
if str2, found := source.Snippet(2); found {
t.Errorf(snippetFound, t.Name(), 2)
t.Error(snippetFound, t.Name(), 2)
} else if str2 != "" {
t.Errorf(unexpectedSnippet, t.Name(), str2, "")
t.Error(unexpectedSnippet, t.Name(), str2, "")
}
}
4 changes: 2 additions & 2 deletions optimizer/const_expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package optimizer

import (
"fmt"
. "github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/file"
. "github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/file"
"reflect"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion optimizer/const_range.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package optimizer

import (
. "github.com/techdroplabs/expr/ast"
. "github.com/antonmedv/expr/ast"
)

type constRange struct{}
Expand Down
4 changes: 2 additions & 2 deletions optimizer/fold.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"math"
"reflect"

. "github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/file"
. "github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/file"
)

type fold struct {
Expand Down
2 changes: 1 addition & 1 deletion optimizer/in_array.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package optimizer
import (
"reflect"

. "github.com/techdroplabs/expr/ast"
. "github.com/antonmedv/expr/ast"
)

type inArray struct{}
Expand Down
2 changes: 1 addition & 1 deletion optimizer/in_range.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package optimizer

import (
. "github.com/techdroplabs/expr/ast"
. "github.com/antonmedv/expr/ast"
)

type inRange struct{}
Expand Down
4 changes: 2 additions & 2 deletions optimizer/optimizer.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package optimizer

import (
. "github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/conf"
. "github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/conf"
)

func Optimize(node *Node, config *conf.Config) error {
Expand Down
10 changes: 5 additions & 5 deletions optimizer/optimizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"strings"
"testing"

"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/checker"
"github.com/techdroplabs/expr/conf"
"github.com/techdroplabs/expr/optimizer"
"github.com/techdroplabs/expr/parser"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/checker"
"github.com/antonmedv/expr/conf"
"github.com/antonmedv/expr/optimizer"
"github.com/antonmedv/expr/parser"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion parser/lexer/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"unicode/utf8"

"github.com/techdroplabs/expr/file"
"github.com/antonmedv/expr/file"
)

func Lex(source *file.Source) ([]Token, error) {
Expand Down
4 changes: 2 additions & 2 deletions parser/lexer/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/techdroplabs/expr/file"
. "github.com/techdroplabs/expr/parser/lexer"
"github.com/antonmedv/expr/file"
. "github.com/antonmedv/expr/parser/lexer"
)

type lexTest struct {
Expand Down
2 changes: 1 addition & 1 deletion parser/lexer/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package lexer
import (
"fmt"

"github.com/techdroplabs/expr/file"
"github.com/antonmedv/expr/file"
)

type Kind string
Expand Down
6 changes: 3 additions & 3 deletions parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"
"unicode/utf8"

. "github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/file"
. "github.com/techdroplabs/expr/parser/lexer"
. "github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/file"
. "github.com/antonmedv/expr/parser/lexer"
)

type associativity int
Expand Down
4 changes: 2 additions & 2 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"
"testing"

"github.com/techdroplabs/expr/ast"
"github.com/techdroplabs/expr/parser"
"github.com/antonmedv/expr/ast"
"github.com/antonmedv/expr/parser"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion vm/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"regexp"

"github.com/techdroplabs/expr/file"
"github.com/antonmedv/expr/file"
)

type Program struct {
Expand Down
2 changes: 1 addition & 1 deletion vm/program_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/techdroplabs/expr/vm"
"github.com/antonmedv/expr/vm"
)

func TestProgram_Disassemble(t *testing.T) {
Expand Down
Loading

0 comments on commit a71a771

Please sign in to comment.