Skip to content

Commit

Permalink
all: rename the module from 'scriggo' to 'github.com/open2b/scriggo'
Browse files Browse the repository at this point in the history
  • Loading branch information
zapateo committed Apr 28, 2020
1 parent 257a3a0 commit f79b7f3
Show file tree
Hide file tree
Showing 74 changed files with 130 additions and 127 deletions.
2 changes: 1 addition & 1 deletion cmd/scriggo/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ import (
{{- end}}
)
import . "scriggo"
import . "github.com/open2b/scriggo"
{{ if not .ImportReflect}}import "reflect"{{end}}
func init() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/scriggo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module scriggo/cmd/scriggo

go 1.13

replace scriggo => ../../
replace github.com/open2b/scriggo => ../../

require (
github.com/open2b/scriggo v0.0.0-00010101000000-000000000000
github.com/rogpeppe/go-internal v1.5.1
golang.org/x/tools v0.0.0-20200102200121-6de373a2766c
scriggo v0.0.0-00010101000000-000000000000
)
4 changes: 2 additions & 2 deletions cmd/scriggo/interpreter_skel.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const interpreterSkel = `// Copyright (c) 2019 Open2b Software Snc. All rights r
"strconv"
"time"
"scriggo"
"scriggo/runtime"
"github.com/open2b/scriggo"
"github.com/open2b/scriggo/runtime"
)
const usage = "usage: %s [-S] [-time 50ms] filename\n"
Expand Down
2 changes: 1 addition & 1 deletion cmd/scriggo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ func _build(cmd string, path string, flags buildFlags) error {
panic("scriggo: empty gopath not supported")
}
scriggoPath := filepath.Join(goPaths[0], "src/scriggo")
err = goMod.AddReplace("scriggo", "", scriggoPath, "")
err = goMod.AddReplace("github.com/open2b/scriggo", "", scriggoPath, "")
if err != nil {
panic("scriggo: can't create go.mod: %s")
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/scriggo/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"path/filepath"
"time"

"scriggo"
"scriggo/runtime"
"github.com/open2b/scriggo"
"github.com/open2b/scriggo/runtime"
)

const usage = "usage: %s [-S] [-time 50ms] filename\n"
Expand Down
12 changes: 6 additions & 6 deletions cmd/scriggo/sources.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion compiler/ast/astutil/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package astutil
import (
"fmt"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

// CloneTree returns a complete copy of tree.
Expand Down
2 changes: 1 addition & 1 deletion compiler/ast/astutil/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"io"
"strconv"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

type dumper struct {
Expand Down
7 changes: 4 additions & 3 deletions compiler/ast/astutil/dump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package astutil_test
import (
"bytes"
"fmt"
"scriggo/compiler"
"scriggo/compiler/ast"
"scriggo/compiler/ast/astutil"

"github.com/open2b/scriggo/compiler"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast/astutil"
)

func ExampleDump() {
Expand Down
2 changes: 1 addition & 1 deletion compiler/ast/astutil/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package astutil
import (
"fmt"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

// Visitor's visit method is invoked for every node encountered by Walk.
Expand Down
7 changes: 4 additions & 3 deletions compiler/ast/astutil/walk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
package astutil_test

import (
"scriggo/compiler"
"scriggo/compiler/ast"
"scriggo/compiler/ast/astutil"
"testing"

"github.com/open2b/scriggo/compiler"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast/astutil"
)

type TestVisitor struct {
Expand Down
6 changes: 3 additions & 3 deletions compiler/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"reflect"
"strconv"

"scriggo/compiler/ast"
"scriggo/compiler/types"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/types"
"github.com/open2b/scriggo/runtime"
)

// Define some constants that define limits of the implementation.
Expand Down
4 changes: 2 additions & 2 deletions compiler/builder_instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"fmt"
"reflect"

"scriggo/compiler/ast"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
)

// emitAdd appends a new "Add" instruction to the function body.
Expand Down
4 changes: 2 additions & 2 deletions compiler/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"errors"
"fmt"

"scriggo/compiler/ast"
"scriggo/compiler/types"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/types"
)

// typecheck makes a type check on tree. A map of predefined packages may be
Expand Down
2 changes: 1 addition & 1 deletion compiler/checker_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"reflect"
"strings"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

// checkAssignment type checks an assignment node with the operator '='.
Expand Down
2 changes: 1 addition & 1 deletion compiler/checker_dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package compiler
import (
"fmt"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

// Makes a dependency analysis after parsing and before the type checking. See
Expand Down
3 changes: 2 additions & 1 deletion compiler/checker_dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ package compiler

import (
"reflect"
"scriggo/compiler/ast"
"sort"
"strconv"
"testing"

"github.com/open2b/scriggo/compiler/ast"
)

var cases = map[string]struct {
Expand Down
4 changes: 2 additions & 2 deletions compiler/checker_expressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"unicode"
"unicode/utf8"

"scriggo/compiler/ast"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
)

type scopeElement struct {
Expand Down
2 changes: 1 addition & 1 deletion compiler/checker_obsolete_for_range_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package compiler

import "scriggo/compiler/ast"
import "github.com/open2b/scriggo/compiler/ast"

// TODO: this method is obsolete and must be removed when changing the type
// checking of ForRange nodes.
Expand Down
2 changes: 1 addition & 1 deletion compiler/checker_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
"strings"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

// Sync with scriggo.Package.
Expand Down
2 changes: 1 addition & 1 deletion compiler/checker_package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package compiler
import (
"testing"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

func TestInitializationLoop(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion compiler/checker_statements.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"fmt"
"reflect"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

// templatePageToPackage extract first-level declarations in tree and appends them
Expand Down
4 changes: 2 additions & 2 deletions compiler/checker_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strings"
"testing"

"scriggo/compiler"
"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler"
"github.com/open2b/scriggo/compiler/ast"
)

var templateCases = []struct {
Expand Down
4 changes: 2 additions & 2 deletions compiler/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"strings"
"testing"

"scriggo/compiler/ast"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
)

func tierr(line, column int, text string) *CheckingError {
Expand Down
4 changes: 2 additions & 2 deletions compiler/checker_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"unicode"
"unicode/utf8"

"scriggo/compiler/ast"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
)

var errTypeConversion = errors.New("failed type conversion")
Expand Down
4 changes: 2 additions & 2 deletions compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"io/ioutil"
"reflect"

"scriggo/compiler/ast"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
)

// internalOperatorZero and internalOperatorNotZero are two internal operators
Expand Down
2 changes: 1 addition & 1 deletion compiler/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"strings"
"unicode/utf8"

"scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/ast"
)

var errNotRepresentable = errors.New("not representable")
Expand Down
2 changes: 1 addition & 1 deletion compiler/disassembler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strconv"
"strings"

"scriggo/runtime"
"github.com/open2b/scriggo/runtime"
)

type registerType int8
Expand Down
6 changes: 3 additions & 3 deletions compiler/emitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ package compiler
import (
"reflect"

"scriggo/compiler/ast"
"scriggo/compiler/types"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/types"
"github.com/open2b/scriggo/runtime"
)

// An emitter emits instructions for the VM.
Expand Down
4 changes: 2 additions & 2 deletions compiler/emitter_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package compiler
import (
"reflect"

"scriggo/compiler/ast"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
)

// address represents an element on the left side of an assignment.
Expand Down
4 changes: 2 additions & 2 deletions compiler/emitter_expressions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"math"
"reflect"

"scriggo/compiler/ast"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
)

// emitExpr emits expr into a register of a given type. emitExpr tries to not
Expand Down
4 changes: 2 additions & 2 deletions compiler/emitter_func_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package compiler
import (
"reflect"

"scriggo/compiler/ast"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
)

// A functionStore holds information about functions defined in Scriggo and
Expand Down
4 changes: 2 additions & 2 deletions compiler/emitter_statements.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ package compiler

import (
"fmt"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/runtime"
"reflect"
"scriggo/compiler/ast"
"scriggo/runtime"
)

// emitNodes emits instructions for nodes.
Expand Down
6 changes: 3 additions & 3 deletions compiler/emitter_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"unicode"
"unicode/utf8"

"scriggo/compiler/ast"
"scriggo/compiler/types"
"scriggo/runtime"
"github.com/open2b/scriggo/compiler/ast"
"github.com/open2b/scriggo/compiler/types"
"github.com/open2b/scriggo/runtime"
)

// changeRegister emits the code that move the content of register src to
Expand Down
Loading

0 comments on commit f79b7f3

Please sign in to comment.