diff --git a/cmd/repl/main.go b/cmd/repl/main.go index 949c7e9..4fc6ba8 100644 --- a/cmd/repl/main.go +++ b/cmd/repl/main.go @@ -5,7 +5,7 @@ import ( "os" "os/user" - "code.jmug.me/jmug/interpreter-in-go/pkg/repl" + "code.jmug.me/jmug/compiler-in-go/pkg/repl" ) func main() { diff --git a/go.mod b/go.mod index 0cb3e05..436a28d 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module code.jmug.me/jmug/interpreter-in-go +module code.jmug.me/jmug/compiler-in-go go 1.23.3 diff --git a/pkg/ast/array.go b/pkg/ast/array.go index fbc7b15..8c295a4 100644 --- a/pkg/ast/array.go +++ b/pkg/ast/array.go @@ -4,7 +4,7 @@ import ( "bytes" "strings" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type ArrayLiteral struct { diff --git a/pkg/ast/ast_test.go b/pkg/ast/ast_test.go index 3912b37..77b1029 100644 --- a/pkg/ast/ast_test.go +++ b/pkg/ast/ast_test.go @@ -3,7 +3,7 @@ package ast import ( "testing" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) func TestString(t *testing.T) { diff --git a/pkg/ast/block.go b/pkg/ast/block.go index 108dadc..074a31e 100644 --- a/pkg/ast/block.go +++ b/pkg/ast/block.go @@ -3,7 +3,7 @@ package ast import ( "bytes" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type BlockStatement struct { diff --git a/pkg/ast/boolean.go b/pkg/ast/boolean.go index 256cde5..a3590eb 100644 --- a/pkg/ast/boolean.go +++ b/pkg/ast/boolean.go @@ -1,6 +1,6 @@ package ast -import "code.jmug.me/jmug/interpreter-in-go/pkg/token" +import "code.jmug.me/jmug/compiler-in-go/pkg/token" type Boolean struct { Token token.Token diff --git a/pkg/ast/call.go b/pkg/ast/call.go index 5d87790..69f9aac 100644 --- a/pkg/ast/call.go +++ b/pkg/ast/call.go @@ -4,7 +4,7 @@ import ( "bytes" "strings" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type CallExpression struct { diff --git a/pkg/ast/expression_statement.go b/pkg/ast/expression_statement.go index 4766371..06de389 100644 --- a/pkg/ast/expression_statement.go +++ b/pkg/ast/expression_statement.go @@ -1,6 +1,6 @@ package ast -import "code.jmug.me/jmug/interpreter-in-go/pkg/token" +import "code.jmug.me/jmug/compiler-in-go/pkg/token" // ExpressionStatement is a simple wrapper of an expression in a statement // This is common in scripting languages and allows you to have a source line diff --git a/pkg/ast/function.go b/pkg/ast/function.go index 8cdfb9e..0d94884 100644 --- a/pkg/ast/function.go +++ b/pkg/ast/function.go @@ -4,7 +4,7 @@ import ( "bytes" "strings" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type FunctionLiteral struct { diff --git a/pkg/ast/hash.go b/pkg/ast/hash.go index 7d48cb8..93f1395 100644 --- a/pkg/ast/hash.go +++ b/pkg/ast/hash.go @@ -3,7 +3,7 @@ package ast import ( "strings" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type HashLiteral struct { diff --git a/pkg/ast/identifier.go b/pkg/ast/identifier.go index 4635ddc..a8b0706 100644 --- a/pkg/ast/identifier.go +++ b/pkg/ast/identifier.go @@ -1,6 +1,6 @@ package ast -import "code.jmug.me/jmug/interpreter-in-go/pkg/token" +import "code.jmug.me/jmug/compiler-in-go/pkg/token" // Identifier is treated as an expression because in certain // circumstances they can return values (think `let some = other` where `other` diff --git a/pkg/ast/if_expression.go b/pkg/ast/if_expression.go index e28d122..dda616c 100644 --- a/pkg/ast/if_expression.go +++ b/pkg/ast/if_expression.go @@ -3,7 +3,7 @@ package ast import ( "bytes" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type IfExpression struct { diff --git a/pkg/ast/index.go b/pkg/ast/index.go index 7484917..8ce2fc7 100644 --- a/pkg/ast/index.go +++ b/pkg/ast/index.go @@ -3,7 +3,7 @@ package ast import ( "fmt" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type IndexExpression struct { diff --git a/pkg/ast/infix_expression.go b/pkg/ast/infix_expression.go index 53d4bf9..9b368ef 100644 --- a/pkg/ast/infix_expression.go +++ b/pkg/ast/infix_expression.go @@ -1,6 +1,6 @@ package ast -import "code.jmug.me/jmug/interpreter-in-go/pkg/token" +import "code.jmug.me/jmug/compiler-in-go/pkg/token" type InfixExpression struct { Token token.Token // The operator token diff --git a/pkg/ast/integer.go b/pkg/ast/integer.go index 4a04bef..61af1ee 100644 --- a/pkg/ast/integer.go +++ b/pkg/ast/integer.go @@ -1,6 +1,6 @@ package ast -import "code.jmug.me/jmug/interpreter-in-go/pkg/token" +import "code.jmug.me/jmug/compiler-in-go/pkg/token" type IntegerLiteral struct { Token token.Token diff --git a/pkg/ast/let.go b/pkg/ast/let.go index 4f13337..fa606a3 100644 --- a/pkg/ast/let.go +++ b/pkg/ast/let.go @@ -3,7 +3,7 @@ package ast import ( "bytes" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type LetStatement struct { diff --git a/pkg/ast/prefix_expression.go b/pkg/ast/prefix_expression.go index 942f0cf..2821dad 100644 --- a/pkg/ast/prefix_expression.go +++ b/pkg/ast/prefix_expression.go @@ -1,6 +1,6 @@ package ast -import "code.jmug.me/jmug/interpreter-in-go/pkg/token" +import "code.jmug.me/jmug/compiler-in-go/pkg/token" type PrefixExpression struct { Token token.Token // The operator token diff --git a/pkg/ast/return.go b/pkg/ast/return.go index 1fa7101..a212e4c 100644 --- a/pkg/ast/return.go +++ b/pkg/ast/return.go @@ -3,7 +3,7 @@ package ast import ( "bytes" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type ReturnStatement struct { diff --git a/pkg/ast/string.go b/pkg/ast/string.go index 2b9edc6..784b699 100644 --- a/pkg/ast/string.go +++ b/pkg/ast/string.go @@ -1,6 +1,6 @@ package ast -import "code.jmug.me/jmug/interpreter-in-go/pkg/token" +import "code.jmug.me/jmug/compiler-in-go/pkg/token" type StringLiteral struct { Token token.Token diff --git a/pkg/evaluator/builtins.go b/pkg/evaluator/builtins.go index c36b6ae..60e709c 100644 --- a/pkg/evaluator/builtins.go +++ b/pkg/evaluator/builtins.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "code.jmug.me/jmug/interpreter-in-go/pkg/object" + "code.jmug.me/jmug/compiler-in-go/pkg/object" ) var builtins = map[string]*object.Builtin{ diff --git a/pkg/evaluator/evaluator.go b/pkg/evaluator/evaluator.go index a2770ff..55e1475 100644 --- a/pkg/evaluator/evaluator.go +++ b/pkg/evaluator/evaluator.go @@ -3,8 +3,8 @@ package evaluator import ( "fmt" - "code.jmug.me/jmug/interpreter-in-go/pkg/ast" - "code.jmug.me/jmug/interpreter-in-go/pkg/object" + "code.jmug.me/jmug/compiler-in-go/pkg/ast" + "code.jmug.me/jmug/compiler-in-go/pkg/object" ) var ( diff --git a/pkg/evaluator/evaluator_test.go b/pkg/evaluator/evaluator_test.go index 35f9993..c47b7de 100644 --- a/pkg/evaluator/evaluator_test.go +++ b/pkg/evaluator/evaluator_test.go @@ -3,9 +3,9 @@ package evaluator import ( "testing" - "code.jmug.me/jmug/interpreter-in-go/pkg/lexer" - "code.jmug.me/jmug/interpreter-in-go/pkg/object" - "code.jmug.me/jmug/interpreter-in-go/pkg/parser" + "code.jmug.me/jmug/compiler-in-go/pkg/lexer" + "code.jmug.me/jmug/compiler-in-go/pkg/object" + "code.jmug.me/jmug/compiler-in-go/pkg/parser" ) func TestEvalIntegerExpression(t *testing.T) { diff --git a/pkg/lexer/lexer.go b/pkg/lexer/lexer.go index 1efe8e8..711df6b 100644 --- a/pkg/lexer/lexer.go +++ b/pkg/lexer/lexer.go @@ -1,6 +1,6 @@ package lexer -import "code.jmug.me/jmug/interpreter-in-go/pkg/token" +import "code.jmug.me/jmug/compiler-in-go/pkg/token" type Lexer struct { input string diff --git a/pkg/lexer/lexer_test.go b/pkg/lexer/lexer_test.go index 564f0d3..b60b20b 100644 --- a/pkg/lexer/lexer_test.go +++ b/pkg/lexer/lexer_test.go @@ -3,7 +3,7 @@ package lexer import ( "testing" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) func TestNextToken(t *testing.T) { diff --git a/pkg/object/object.go b/pkg/object/object.go index 396c19b..0d11d4d 100644 --- a/pkg/object/object.go +++ b/pkg/object/object.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "code.jmug.me/jmug/interpreter-in-go/pkg/ast" + "code.jmug.me/jmug/compiler-in-go/pkg/ast" ) type ObjectType string diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index f45d8c0..55e2c97 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -4,9 +4,9 @@ import ( "fmt" "strconv" - "code.jmug.me/jmug/interpreter-in-go/pkg/ast" - "code.jmug.me/jmug/interpreter-in-go/pkg/lexer" - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/ast" + "code.jmug.me/jmug/compiler-in-go/pkg/lexer" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) type ( diff --git a/pkg/parser/parser_test.go b/pkg/parser/parser_test.go index 9403229..bdb44c1 100644 --- a/pkg/parser/parser_test.go +++ b/pkg/parser/parser_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "code.jmug.me/jmug/interpreter-in-go/pkg/ast" - "code.jmug.me/jmug/interpreter-in-go/pkg/lexer" + "code.jmug.me/jmug/compiler-in-go/pkg/ast" + "code.jmug.me/jmug/compiler-in-go/pkg/lexer" ) func TestLetStatements(t *testing.T) { diff --git a/pkg/parser/precedence.go b/pkg/parser/precedence.go index aa792da..2a4cd87 100644 --- a/pkg/parser/precedence.go +++ b/pkg/parser/precedence.go @@ -1,7 +1,7 @@ package parser import ( - "code.jmug.me/jmug/interpreter-in-go/pkg/token" + "code.jmug.me/jmug/compiler-in-go/pkg/token" ) const ( diff --git a/pkg/repl/repl.go b/pkg/repl/repl.go index 0878839..a1d88d8 100644 --- a/pkg/repl/repl.go +++ b/pkg/repl/repl.go @@ -5,10 +5,10 @@ import ( "fmt" "io" - "code.jmug.me/jmug/interpreter-in-go/pkg/evaluator" - "code.jmug.me/jmug/interpreter-in-go/pkg/lexer" - "code.jmug.me/jmug/interpreter-in-go/pkg/object" - "code.jmug.me/jmug/interpreter-in-go/pkg/parser" + "code.jmug.me/jmug/compiler-in-go/pkg/evaluator" + "code.jmug.me/jmug/compiler-in-go/pkg/lexer" + "code.jmug.me/jmug/compiler-in-go/pkg/object" + "code.jmug.me/jmug/compiler-in-go/pkg/parser" ) const PROMPT = ">> "