let a = 10;
let b = "hello world"
let c = [1,2,3,4,5]
let d = {"key": "value"}
a= 20;
b = "ni hao zhongguo"
haomata@MacBookPro interpreter % go test ./...
? interpreter [no test files]
? interpreter/object [no test files]
? interpreter/repl [no test files]
? interpreter/token [no test files]
ok interpreter/ast (cached)
ok interpreter/evaluator (cached)
ok interpreter/lexer (cached)
ok interpreter/parser (cached)
haomata@MacBookPro interpreter % go run main.go
Hello haomata!This is the Mata Programming language
Feel free to type in commands
enter message "quit" to quit
>>let a = 10;
>>let arr = [1,2,3,4,5];
>>puts(arr);
[1, 2, 3, 4, 5]
>>first(arr);
1
>>rest(arr);
[2, 3, 4, 5]
>>len(arr);
5
>>quit