Commit Graph

11 Commits

Author SHA1 Message Date
6a96a3dd25 Update name change. 2024-08-28 19:31:35 -05:00
ec6c1ce5aa Now supports strings.
git-svn-id: https://svn.tlawal.org/svn/monkey@63 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2023-05-09 19:59:18 +00:00
4f3ef7d314 Interpreter complete.
git-svn-id: https://svn.tlawal.org/svn/monkey@62 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2023-05-05 19:15:39 +00:00
ef88c389f0 Adding Support for arrays. TESTs do not pass, need to fix.
git-svn-id: https://svn.tlawal.org/svn/monkey@60 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-11-24 20:02:19 +00:00
40de215f70 Built-in functions:
len() added

git-svn-id: https://svn.tlawal.org/svn/monkey@59 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-11-11 20:30:15 +00:00
2791a27f1f Built-in datatypes: Added String
The parser now understands what a strings is and can take a string literal and curn out an Stringliteral AST
nodes.



git-svn-id: https://svn.tlawal.org/svn/monkey@56 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-11-03 11:11:42 +00:00
4f90d0cbd1 Formatting
git-svn-id: https://svn.tlawal.org/svn/monkey@15 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-26 16:33:09 +00:00
69ffeb209c Do not show username at interpreter startup.
Now Monk not monkey
Formatting and code clarity


git-svn-id: https://svn.tlawal.org/svn/monkey@9 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-23 14:18:27 +00:00
ee8ab63809 Rename new -> New and next_token -> NextToken, because of go's weird requirement that first letter
of public methods in a package that would be used in another package must be capitalized.

git-svn-id: https://svn.tlawal.org/svn/monkey@4 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-12 22:38:47 +00:00
cebc052f32 - The lexer can now peek forward into the input stream.
- Added the rest of the basic math operators.
- Added > and <.
- Test, Test, Test.
- Added if, else, return, true, false.
- Lexer can now differentiate between '=' and '==' and '!' and '!='.

git-svn-id: https://svn.tlawal.org/svn/monkey@2 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-12 22:04:29 +00:00
44d9b2c7ec Monkey can now lex its basic types and keywords.
git-svn-id: https://svn.tlawal.org/svn/monkey@1 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-12 20:51:16 +00:00