aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-07-18 12:13:50 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-07-18 12:13:50 +0100
commit6427d793418458ea30a23d3b11efd6a75bf6dc1e (patch)
treef69399c57e6730355c1ddc574e5eb3ab3a0b6e89
parentb6b68929a7efb19962795211c58d52dd08249235 (diff)
downloadmicro-lang-6427d793418458ea30a23d3b11efd6a75bf6dc1e.tar.gz
micro-lang-6427d793418458ea30a23d3b11efd6a75bf6dc1e.zip
Use the public package
-rw-r--r--ast/ast.go2
-rw-r--r--cmd/micro/micro.go6
-rw-r--r--errors/errors.go2
-rw-r--r--go.mod2
-rw-r--r--interpreter/callable.go6
-rw-r--r--interpreter/interpreter.go6
-rw-r--r--interpreter/interpreter_test.go8
-rw-r--r--parser/parser.go6
-rw-r--r--parser/parser_test.go6
-rw-r--r--tokenizer/tokenizer.go4
-rw-r--r--tokenizer/tokenizer_test.go2
11 files changed, 25 insertions, 25 deletions
diff --git a/ast/ast.go b/ast/ast.go
index a654e4b..90a6a60 100644
--- a/ast/ast.go
+++ b/ast/ast.go
@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
- "usebox.net/lang/tokens"
+ "git.usebox.net/micro-lang/tokens"
)
// for JSON
diff --git a/cmd/micro/micro.go b/cmd/micro/micro.go
index 3e5c9e6..456fa13 100644
--- a/cmd/micro/micro.go
+++ b/cmd/micro/micro.go
@@ -11,9 +11,9 @@ import (
"strings"
"time"
- "usebox.net/lang/interpreter"
- "usebox.net/lang/parser"
- "usebox.net/lang/tokenizer"
+ "git.usebox.net/micro-lang/interpreter"
+ "git.usebox.net/micro-lang/parser"
+ "git.usebox.net/micro-lang/tokenizer"
)
const name = "micro"
diff --git a/errors/errors.go b/errors/errors.go
index a8d1eb0..5b68964 100644
--- a/errors/errors.go
+++ b/errors/errors.go
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
- "usebox.net/lang/tokens"
+ "git.usebox.net/micro-lang/tokens"
)
type ErrCode int
diff --git a/go.mod b/go.mod
index 72a6a14..2efc04d 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
-module usebox.net/lang
+module git.usebox.net/micro-lang
go 1.18
diff --git a/interpreter/callable.go b/interpreter/callable.go
index e9dc6aa..139d1da 100644
--- a/interpreter/callable.go
+++ b/interpreter/callable.go
@@ -3,9 +3,9 @@ package interpreter
import (
"fmt"
- "usebox.net/lang/ast"
- "usebox.net/lang/errors"
- "usebox.net/lang/tokens"
+ "git.usebox.net/micro-lang/ast"
+ "git.usebox.net/micro-lang/errors"
+ "git.usebox.net/micro-lang/tokens"
)
type Callable interface {
diff --git a/interpreter/interpreter.go b/interpreter/interpreter.go
index 8d5b7a8..8dd0d00 100644
--- a/interpreter/interpreter.go
+++ b/interpreter/interpreter.go
@@ -4,9 +4,9 @@ import (
"fmt"
"strings"
- "usebox.net/lang/ast"
- "usebox.net/lang/errors"
- "usebox.net/lang/tokens"
+ "git.usebox.net/micro-lang/ast"
+ "git.usebox.net/micro-lang/errors"
+ "git.usebox.net/micro-lang/tokens"
)
type Var struct {
diff --git a/interpreter/interpreter_test.go b/interpreter/interpreter_test.go
index d9c63ae..cab4cf6 100644
--- a/interpreter/interpreter_test.go
+++ b/interpreter/interpreter_test.go
@@ -5,10 +5,10 @@ import (
"strings"
"testing"
- "usebox.net/lang/ast"
- "usebox.net/lang/errors"
- "usebox.net/lang/parser"
- "usebox.net/lang/tokenizer"
+ "git.usebox.net/micro-lang/ast"
+ "git.usebox.net/micro-lang/errors"
+ "git.usebox.net/micro-lang/parser"
+ "git.usebox.net/micro-lang/tokenizer"
)
func run(input string) (any, error) {
diff --git a/parser/parser.go b/parser/parser.go
index 65007b7..7970516 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -4,9 +4,9 @@ import (
"fmt"
"strconv"
- "usebox.net/lang/ast"
- "usebox.net/lang/errors"
- "usebox.net/lang/tokens"
+ "git.usebox.net/micro-lang/ast"
+ "git.usebox.net/micro-lang/errors"
+ "git.usebox.net/micro-lang/tokens"
)
// XXX: duplicated
diff --git a/parser/parser_test.go b/parser/parser_test.go
index 8e97146..2f98699 100644
--- a/parser/parser_test.go
+++ b/parser/parser_test.go
@@ -4,9 +4,9 @@ import (
"strings"
"testing"
- "usebox.net/lang/ast"
- "usebox.net/lang/errors"
- "usebox.net/lang/tokenizer"
+ "git.usebox.net/micro-lang/ast"
+ "git.usebox.net/micro-lang/errors"
+ "git.usebox.net/micro-lang/tokenizer"
)
func parse(input string) ([]ast.Expr, error) {
diff --git a/tokenizer/tokenizer.go b/tokenizer/tokenizer.go
index 78616c6..3486280 100644
--- a/tokenizer/tokenizer.go
+++ b/tokenizer/tokenizer.go
@@ -9,8 +9,8 @@ import (
"strings"
"unicode"
- "usebox.net/lang/errors"
- "usebox.net/lang/tokens"
+ "git.usebox.net/micro-lang/errors"
+ "git.usebox.net/micro-lang/tokens"
)
type rTokenIdMap map[rune]tokens.TokenId
diff --git a/tokenizer/tokenizer_test.go b/tokenizer/tokenizer_test.go
index 47afebb..c709b65 100644
--- a/tokenizer/tokenizer_test.go
+++ b/tokenizer/tokenizer_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "usebox.net/lang/tokens"
+ "git.usebox.net/micro-lang/tokens"
)
func TestSkipWhitespace(t *testing.T) {