Move project to Github

pull/2/head
James Mills 4 years ago
parent 72caca2e22
commit 31debf4224

1
.gitignore vendored

@ -1,3 +1,4 @@
*~*
*.bak
*.txt
monkey-lang

@ -0,0 +1,22 @@
Copyright (C) 2018 James Mills
monkey-lang is covered by the MIT license::
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@ -7,7 +7,7 @@ import (
"bytes"
"strings"
"git.mills.io/prologic/monkey/token"
"github.com/prologic/monkey-lang/token"
)
// Node defines an interface for all nodes in the AST.

@ -3,7 +3,7 @@ package ast
import (
"testing"
"git.mills.io/prologic/monkey/token"
"github.com/prologic/monkey-lang/token"
)
func TestString(t *testing.T) {

@ -3,7 +3,7 @@ package eval
import (
"fmt"
"git.mills.io/prologic/monkey/object"
"github.com/prologic/monkey-lang/object"
)
var builtins = map[string]*object.Builtin{

@ -7,8 +7,8 @@ package eval
import (
"fmt"
"git.mills.io/prologic/monkey/ast"
"git.mills.io/prologic/monkey/object"
"github.com/prologic/monkey-lang/ast"
"github.com/prologic/monkey-lang/object"
)
var (

@ -3,9 +3,9 @@ package eval
import (
"testing"
"git.mills.io/prologic/monkey/lexer"
"git.mills.io/prologic/monkey/object"
"git.mills.io/prologic/monkey/parser"
"github.com/prologic/monkey-lang/lexer"
"github.com/prologic/monkey-lang/object"
"github.com/prologic/monkey-lang/parser"
)
func TestEvalIntegerExpression(t *testing.T) {

@ -5,7 +5,7 @@ package lexer
// parsing by the parser.
import (
"git.mills.io/prologic/monkey/token"
"github.com/prologic/monkey-lang/token"
)
func isDigit(ch byte) bool {

@ -3,7 +3,7 @@ package lexer
import (
"testing"
"git.mills.io/prologic/monkey/token"
"github.com/prologic/monkey-lang/token"
)
func TestNextToken(t *testing.T) {

@ -8,7 +8,7 @@ import (
"os"
"os/user"
"git.mills.io/prologic/monkey/repl"
"github.com/prologic/monkey-lang/repl"
)
func main() {

@ -10,7 +10,7 @@ import (
"hash/fnv"
"strings"
"git.mills.io/prologic/monkey/ast"
"github.com/prologic/monkey-lang/ast"
)
const (

@ -4,9 +4,9 @@ import (
"fmt"
"strconv"
"git.mills.io/prologic/monkey/ast"
"git.mills.io/prologic/monkey/lexer"
"git.mills.io/prologic/monkey/token"
"github.com/prologic/monkey-lang/ast"
"github.com/prologic/monkey-lang/lexer"
"github.com/prologic/monkey-lang/token"
)
const (

@ -4,8 +4,8 @@ import (
"fmt"
"testing"
"git.mills.io/prologic/monkey/ast"
"git.mills.io/prologic/monkey/lexer"
"github.com/prologic/monkey-lang/ast"
"github.com/prologic/monkey-lang/lexer"
)
func TestLetStatements(t *testing.T) {

@ -8,10 +8,10 @@ import (
"fmt"
"io"
"git.mills.io/prologic/monkey/eval"
"git.mills.io/prologic/monkey/lexer"
"git.mills.io/prologic/monkey/object"
"git.mills.io/prologic/monkey/parser"
"github.com/prologic/monkey-lang/eval"
"github.com/prologic/monkey-lang/lexer"
"github.com/prologic/monkey-lang/object"
"github.com/prologic/monkey-lang/parser"
)
// PROMPT is the REPL prompt displayed for each input

Loading…
Cancel
Save