Commit Graph

20 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
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
7e34164019 CallExpression ast, parser and tests completed.
git-svn-id: https://svn.tlawal.org/svn/monkey@39 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-08-01 04:58:28 +00:00
c1d53c5101 git-svn-id: https://svn.tlawal.org/svn/monkey@37 f6afcba9-9ef1-4bdd-9b72-7484f5705bac 2022-07-31 21:57:20 +00:00
5d1197160d Improved code readability.
Added IfExpressions, BlockStatements, and FunctionLiterals

git-svn-id: https://svn.tlawal.org/svn/monkey@35 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-07-31 21:44:35 +00:00
a4b75cf9c2 Changes:
- Parsing grouped expressions is now possible
- formatting

git-svn-id: https://svn.tlawal.org/svn/monkey@34 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-07-14 12:23:22 +00:00
388700441e Changes:
- Added helper functions to test BooleanLiterals
- Formatting

git-svn-id: https://svn.tlawal.org/svn/monkey@33 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-07-14 12:12:56 +00:00
628a604701 Changes:
- Boolean expression can now be parsed. 
- Formatting

git-svn-id: https://svn.tlawal.org/svn/monkey@32 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-07-14 07:26:34 +00:00
e5d95dc7b6 - Infix operator parsing is now possible.
git-svn-id: https://svn.tlawal.org/svn/monkey@25 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-31 15:01:43 +00:00
2253d6b02c Parsing prefix expressions, tests passes
git-svn-id: https://svn.tlawal.org/svn/monkey@24 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-31 11:32:43 +00:00
45f6929c14 Started implementing Pratt Parsing, tests now pass that can generate on Infix and Integer expressions.
git-svn-id: https://svn.tlawal.org/svn/monkey@23 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-30 17:40:03 +00:00
e456189c86 ExpressionStatement in the AST to represent the typse of expressions that is supported in monkey.
Hand written test in the AST to test the String() function for accuracy



git-svn-id: https://svn.tlawal.org/svn/monkey@22 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-30 05:51:27 +00:00
fdf6a8a552 - Some minor formatting.
- Parser can now handle return statements.

git-svn-id: https://svn.tlawal.org/svn/monkey@21 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-27 15:07:19 +00:00
b78944e3d7 Typo
git-svn-id: https://svn.tlawal.org/svn/monkey@13 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-23 17:35:55 +00:00
4691f6c3e5 Basic AST to represent expressions, statement, identifiers
I now understand how it works.

git-svn-id: https://svn.tlawal.org/svn/monkey@12 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-23 14:26:34 +00:00
f8f7ec04c7 Basic AST to represent expressions, statement, identifiers
I now understand how it works.

git-svn-id: https://svn.tlawal.org/svn/monkey@10 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-23 14:24:35 +00:00
cf651aa1b8 ast and parser
git-svn-id: https://svn.tlawal.org/svn/monkey@7 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-22 06:51:19 +00:00