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