umx_compiler

UMX virtual machine "Monkey" interpreter / bytecode compiler
git clone git://bsandro.tech/umx_compiler
Log | Files | Refs

commit a6acaa763cd3a432fa897c0ae432d93275f8212b
parent 95f7a00c8f2ca0349d3f0f81e54bf1c2bc5cf524
Author: bsandro <email@bsandro.tech>
Date:   Thu, 14 Jul 2022 02:28:19 +0300

Transitional project rename interp -> umx_compiler (name is subject to change)

Diffstat:
Mast/ast.go | 2+-
Mast/ast_test.go | 2+-
Meval/builtins.go | 2+-
Meval/eval.go | 4++--
Meval/eval_test.go | 6+++---
Mgo.mod | 2+-
Mlexer/lexer.go | 2+-
Mlexer/lexer_test.go | 2+-
Mmain.go | 4++--
Mobject/object.go | 2+-
Mparser/parser.go | 6+++---
Mparser/parser_test.go | 4++--
Mrepl/repl.go | 8++++----
13 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/ast/ast.go b/ast/ast.go @@ -2,7 +2,7 @@ package ast import ( "bytes" - "interp/token" + "umx_compiler/token" "strings" ) diff --git a/ast/ast_test.go b/ast/ast_test.go @@ -1,7 +1,7 @@ package ast import ( - "interp/token" + "umx_compiler/token" "testing" ) diff --git a/eval/builtins.go b/eval/builtins.go @@ -2,7 +2,7 @@ package eval import ( "fmt" - "interp/object" + "umx_compiler/object" ) var builtins = map[string]*object.Builtin{ diff --git a/eval/eval.go b/eval/eval.go @@ -2,8 +2,8 @@ package eval import ( "fmt" - "interp/ast" - "interp/object" + "umx_compiler/ast" + "umx_compiler/object" ) var ( diff --git a/eval/eval_test.go b/eval/eval_test.go @@ -1,9 +1,9 @@ package eval import ( - "interp/lexer" - "interp/object" - "interp/parser" + "umx_compiler/lexer" + "umx_compiler/object" + "umx_compiler/parser" "testing" ) diff --git a/go.mod b/go.mod @@ -1,3 +1,3 @@ -module interp +module umx_compiler go 1.18 diff --git a/lexer/lexer.go b/lexer/lexer.go @@ -1,6 +1,6 @@ package lexer -import "interp/token" +import "umx_compiler/token" type Lexer struct { input string diff --git a/lexer/lexer_test.go b/lexer/lexer_test.go @@ -1,7 +1,7 @@ package lexer import ( - "interp/token" + "umx_compiler/token" "testing" ) diff --git a/main.go b/main.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "interp/repl" + "umx_compiler/repl" "os" "os/user" ) @@ -22,7 +22,7 @@ func main() { } repl.Run(string(script), os.Stdout) } else { - fmt.Printf("ehlo %s, this is a potato interpretator cleverly named 'interp'\n", user.Username) + fmt.Printf("ehlo %s, this is 'Monkey' language interpreter\n", user.Username) repl.Start(os.Stdin, os.Stdout) } } diff --git a/object/object.go b/object/object.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" "hash/fnv" - "interp/ast" + "umx_compiler/ast" "strings" ) diff --git a/parser/parser.go b/parser/parser.go @@ -2,9 +2,9 @@ package parser import ( "fmt" - "interp/ast" - "interp/lexer" - "interp/token" + "umx_compiler/ast" + "umx_compiler/lexer" + "umx_compiler/token" "strconv" ) diff --git a/parser/parser_test.go b/parser/parser_test.go @@ -2,8 +2,8 @@ package parser import ( "fmt" - "interp/ast" - "interp/lexer" + "umx_compiler/ast" + "umx_compiler/lexer" "testing" ) diff --git a/repl/repl.go b/repl/repl.go @@ -3,10 +3,10 @@ package repl import ( "bufio" "fmt" - "interp/eval" - "interp/lexer" - "interp/object" - "interp/parser" + "umx_compiler/eval" + "umx_compiler/lexer" + "umx_compiler/object" + "umx_compiler/parser" "io" )