Simple interpreter
Go to file
tijani b8e8fc8b6e Stubborn bug, could not figure out what causing it. Will just re-write the entire thing.
```panic: runtime error: invalid memory address or nil pointer dereference [recovered] 
        panic: runtime error: invalid memory address or nil pointer dereference     
[signal 0xc0000005 code=0x0 addr=0x10 pc=0xbcf660]                                  
                                                                                    
goroutine 6 [running]:                                                              
testing.tRunner.func1.2({0xbe4c60, 0xce2c10})                                       
        C:/Program Files/Go/src/testing/testing.go:1389 +0x24e                      
testing.tRunner.func1()                                                             
        C:/Program Files/Go/src/testing/testing.go:1392 +0x39f                      
panic({0xbe4c60, 0xce2c10})                                                         
        C:/Program Files/Go/src/runtime/panic.go:838 +0x207                         
monkey/ast.(*LetStatement).TokenLiteral(0xc000022940?)                              
        D:/monkey/ast/ast.go:37                                                     
monkey/parser.testLetStatement(0xc000132000, {0xc32638, 0x0}, {0xc0106a, 0x1})      
        D:/monkey/parser/parser_test.go:43 +0x49                                    
monkey/parser.TestLetStatements(0xc000132000)                                       
        D:/monkey/parser/parser_test.go:36 +0x1ba                                   
testing.tRunner(0xc000132000, 0xc0d940)                                             
        C:/Program Files/Go/src/testing/testing.go:1439 +0x102                      
created by testing.(*T).Run                                                         
        C:/Program Files/Go/src/testing/testing.go:1486 +0x35f                      
FAIL    monkey/parser   0.180s                                                      
FAIL
```

git-svn-id: https://svn.tlawal.org/svn/monkey@16 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-26 16:35:08 +00:00
ast Typo 2022-05-23 17:35:55 +00:00
lexer Formatting 2022-05-26 16:33:09 +00:00
repl Rename new -> New and next_token -> NextToken, because of go's weird requirement that first letter 2022-05-12 22:38:47 +00:00
token - The lexer can now peek forward into the input stream. 2022-05-12 22:04:29 +00:00
debug.rdbg ast and parser 2022-05-22 06:51:19 +00:00
go.mod Monkey can now lex its basic types and keywords. 2022-05-12 20:51:16 +00:00
main.go Do not show username at interpreter startup. 2022-05-23 14:18:27 +00:00