Skip to content

Commit 2930fbe

Browse files
committed
chore: rename repo and update readme
1 parent 7ecdfa5 commit 2930fbe

19 files changed

+77
-34
lines changed

.markdownlint.jsonc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md013.md
3+
"MD013": false
4+
}

README.md

+41-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
# monkey-interpreter
2-
The result of following Writing An Interpreter In Go by Thorsten Ball
1+
# Monkey Language _(monkey)_
2+
3+
A fully working interpreter for the [Monkey programming language](https://interpreterbook.com/#the-monkey-programming-language).
4+
5+
This repository is the result of following the book [Writing An Interpreter In Go](https://interpreterbook.com/) by Thorsten Ball and [The Lost Chapter](https://interpreterbook.com/lost) by the same author.
6+
This will be continued with the book [Writing A Compiler In Go](https://compilerbook.com/).
7+
8+
## Install
9+
10+
```shell
11+
git clone https://github.com/SVendittelli/monkey.git
12+
cd monkey
13+
```
14+
15+
### Dependencies
16+
17+
- [Go](https://go.dev/) >= 1.13.
18+
19+
## Usage
20+
21+
To run the REPL:
22+
23+
```shell
24+
go run main.go
25+
```
26+
27+
## Maintainer
28+
29+
[@SVendittelli](https://github.com/SVendittelli).
30+
31+
## Contributing
32+
33+
As this is a personal project for learning purposes, I am not accepting contributions at this time.
34+
35+
## License
36+
37+
[MIT © Sam Vendittelli.](./LICENSE)
38+
39+
```yaml
40+
SPDX-License-Identifier: MIT
41+
```

ast/ast.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"strings"
66

7-
"github.com/SVendittelli/monkey-interpreter/token"
7+
"github.com/SVendittelli/monkey/token"
88
)
99

1010
// The base Node interface

ast/ast_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ast
33
import (
44
"testing"
55

6-
"github.com/SVendittelli/monkey-interpreter/token"
6+
"github.com/SVendittelli/monkey/token"
77
)
88

99
func TestString(t *testing.T) {

evaluator/builtins.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package evaluator
33
import (
44
"fmt"
55

6-
"github.com/SVendittelli/monkey-interpreter/object"
6+
"github.com/SVendittelli/monkey/object"
77
)
88

99
var builtins = map[string]*object.Builtin{

evaluator/evaluator.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package evaluator
33
import (
44
"fmt"
55

6-
"github.com/SVendittelli/monkey-interpreter/ast"
7-
"github.com/SVendittelli/monkey-interpreter/object"
6+
"github.com/SVendittelli/monkey/ast"
7+
"github.com/SVendittelli/monkey/object"
88
)
99

1010
var (

evaluator/evaluator_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package evaluator
33
import (
44
"testing"
55

6-
"github.com/SVendittelli/monkey-interpreter/lexer"
7-
"github.com/SVendittelli/monkey-interpreter/object"
8-
"github.com/SVendittelli/monkey-interpreter/parser"
6+
"github.com/SVendittelli/monkey/lexer"
7+
"github.com/SVendittelli/monkey/object"
8+
"github.com/SVendittelli/monkey/parser"
99
)
1010

1111
func TestErrorHandling(t *testing.T) {

evaluator/macro_expansion.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package evaluator
22

33
import (
4-
"github.com/SVendittelli/monkey-interpreter/ast"
5-
"github.com/SVendittelli/monkey-interpreter/object"
4+
"github.com/SVendittelli/monkey/ast"
5+
"github.com/SVendittelli/monkey/object"
66
)
77

88
// DefineMacros does two thinds: finding macro definitions in and removing them

evaluator/macro_expansion_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package evaluator
33
import (
44
"testing"
55

6-
"github.com/SVendittelli/monkey-interpreter/ast"
7-
"github.com/SVendittelli/monkey-interpreter/lexer"
8-
"github.com/SVendittelli/monkey-interpreter/object"
9-
"github.com/SVendittelli/monkey-interpreter/parser"
6+
"github.com/SVendittelli/monkey/ast"
7+
"github.com/SVendittelli/monkey/lexer"
8+
"github.com/SVendittelli/monkey/object"
9+
"github.com/SVendittelli/monkey/parser"
1010
)
1111

1212
func TestDefineMacros(t *testing.T) {

evaluator/quote_unquote.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package evaluator
33
import (
44
"fmt"
55

6-
"github.com/SVendittelli/monkey-interpreter/ast"
7-
"github.com/SVendittelli/monkey-interpreter/object"
8-
"github.com/SVendittelli/monkey-interpreter/token"
6+
"github.com/SVendittelli/monkey/ast"
7+
"github.com/SVendittelli/monkey/object"
8+
"github.com/SVendittelli/monkey/token"
99
)
1010

1111
func quote(node ast.Node, env *object.Environment) object.Object {

evaluator/quote_unquote_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package evaluator
33
import (
44
"testing"
55

6-
"github.com/SVendittelli/monkey-interpreter/object"
6+
"github.com/SVendittelli/monkey/object"
77
)
88

99
func TestQuote(t *testing.T) {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/SVendittelli/monkey-interpreter
1+
module github.com/SVendittelli/monkey
22

33
go 1.21.6

lexer/lexer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package lexer
22

3-
import "github.com/SVendittelli/monkey-interpreter/token"
3+
import "github.com/SVendittelli/monkey/token"
44

55
type Lexer struct {
66
input string

lexer/lexer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package lexer
33
import (
44
"testing"
55

6-
"github.com/SVendittelli/monkey-interpreter/token"
6+
"github.com/SVendittelli/monkey/token"
77
)
88

99
func TestNextToken(t *testing.T) {

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"os/user"
77

8-
"github.com/SVendittelli/monkey-interpreter/repl"
8+
"github.com/SVendittelli/monkey/repl"
99
)
1010

1111
func main() {

object/object.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"hash/fnv"
77
"strings"
88

9-
"github.com/SVendittelli/monkey-interpreter/ast"
9+
"github.com/SVendittelli/monkey/ast"
1010
)
1111

1212
type ObjectType string

parser/parser.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"strconv"
66

7-
"github.com/SVendittelli/monkey-interpreter/ast"
8-
"github.com/SVendittelli/monkey-interpreter/lexer"
9-
"github.com/SVendittelli/monkey-interpreter/token"
7+
"github.com/SVendittelli/monkey/ast"
8+
"github.com/SVendittelli/monkey/lexer"
9+
"github.com/SVendittelli/monkey/token"
1010
)
1111

1212
const (

parser/parser_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/SVendittelli/monkey-interpreter/ast"
8-
"github.com/SVendittelli/monkey-interpreter/lexer"
7+
"github.com/SVendittelli/monkey/ast"
8+
"github.com/SVendittelli/monkey/lexer"
99
)
1010

1111
func TestLetStatements(t *testing.T) {

repl/repl.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"fmt"
66
"io"
77

8-
"github.com/SVendittelli/monkey-interpreter/evaluator"
9-
"github.com/SVendittelli/monkey-interpreter/lexer"
10-
"github.com/SVendittelli/monkey-interpreter/object"
11-
"github.com/SVendittelli/monkey-interpreter/parser"
8+
"github.com/SVendittelli/monkey/evaluator"
9+
"github.com/SVendittelli/monkey/lexer"
10+
"github.com/SVendittelli/monkey/object"
11+
"github.com/SVendittelli/monkey/parser"
1212
)
1313

1414
const PROMPT = ">> "

0 commit comments

Comments
 (0)