index
:
interpreter
this commit
master
Simple interpreter written in Zig
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
(
follow
)
Commit message (
Collapse
)
Author
Age
Files
Lines
*
Tokenizer: Fix bug with offset incrementing
HEAD
master
Baitinq
48 min.
1
-28
/
+24
|
*
Tokenizer: Improve Token type
Baitinq
2 hours
2
-79
/
+56
|
*
Feature: Add support for negation
Baitinq
26 hours
2
-5
/
+9
|
*
Feature: Add support for division and multiplication
Baitinq
26 hours
3
-3
/
+46
|
*
Feature: Add support for while statements
Baitinq
26 hours
3
-8
/
+60
|
*
Tokenizer: Rename NOT token to BANG
Baitinq
30 hours
2
-4
/
+4
|
*
Bug: Fix bug with priority of parsing expressions
Baitinq
30 hours
1
-1
/
+1
|
*
Parser: Remove unused expression node
Baitinq
2 days
1
-10
/
+0
|
*
Feature: Add support for NOT unary expression
Baitinq
2 days
3
-3
/
+32
|
*
Parser: Add support for parenthesis grouping
Baitinq
2 days
1
-9
/
+9
|
*
Parser: Make additive expression left associative
Baitinq
2 days
1
-7
/
+11
|
*
Start working on proper operator precedence
Baitinq
3 days
1
-1
/
+8
|
*
Bug: Fix bug with accept_parse
Baitinq
3 days
1
-1
/
+3
|
*
Feature: Add basic support for equality expression
Baitinq
3 days
2
-19
/
+47
|
*
Feature: Add support for boolean values
Baitinq
4 days
3
-33
/
+46
|
*
Feature: Add support for substraction
Baitinq
4 days
3
-3
/
+11
|
*
Feature: Add basic support for if statements
Baitinq
4 days
3
-32
/
+95
|
*
Evaluator: implement support for function arguments
Manuel Palenzuela Merino
4 days
2
-60
/
+69
|
*
Evaluator: create and drop scopes when entering/leaving functions
Manuel Palenzuela Merino
4 days
1
-4
/
+9
|
*
Evaluator: Create environment abstraction for handling scopes
Baitinq
4 days
1
-21
/
+77
|
*
Misc: Start working on scopes
Baitinq
5 days
1
-8
/
+13
|
*
Tokenizer: Fix comment skipping
Baitinq
5 days
1
-0
/
+1
|
*
Evaluator: Improve how functions and variables are handled
Baitinq
5 days
2
-36
/
+38
|
*
Misc: Implement print function as "native" function
Baitinq
5 days
3
-41
/
+14
|
*
Lang: Start introducing support for function arguments
Baitinq
5 days
3
-10
/
+67
|
*
Tokenizer: Add support for comments
Manuel Palenzuela Merino
6 days
1
-0
/
+9
|
*
Evaluator: variables as values
Manuel Palenzuela Merino
6 days
1
-12
/
+23
|
*
Get function calls kind of working :)
Manuel Palenzuela Merino
6 days
1
-39
/
+43
|
*
Evaluator: Start working on new function-capable evaluator
Baitinq
7 days
3
-46
/
+79
|
*
Parser: clean
Baitinq
7 days
1
-20
/
+13
|
*
Add basic support for parsing functions
Baitinq
8 days
2
-66
/
+162
|
*
Parser: clean
Baitinq
10 days
1
-1
/
+1
|
*
Tokenizer: Add suport for underscores in identifier parsing
Baitinq
10 days
1
-1
/
+1
|
*
Tokenizer: Add support for tokenizing functions
Baitinq
10 days
2
-5
/
+20
|
*
Implement "return"
Baitinq
10 days
3
-1
/
+36
|
*
Evaluator: Store variables with value instead of reference
Baitinq
10 days
1
-6
/
+6
|
*
Add support for sum operator
Baitinq
10 days
3
-53
/
+91
|
*
Evaluator: Fix bug when variables are initialized with the same identifier ↵
Baitinq
10 days
1
-1
/
+2
|
|
|
|
as the defined
*
Tokenizer: Fix tokenizer invalid strings
Baitinq
11 days
2
-3
/
+8
|
*
Misc: Improve error messages and add todos
Baitinq
11 days
3
-5
/
+24
|
*
Evaluator: Add simple test
Baitinq
11 days
1
-0
/
+25
|
*
Parser: fix tests
Baitinq
12 days
1
-51
/
+61
|
*
Tokenizer: Improve tests
Baitinq
12 days
1
-24
/
+45
|
*
Tokenizer: Fix parsing end-of-buf strings
Baitinq
13 days
1
-0
/
+2
|
*
Misc: Support evaluating sequentially in REPL
Baitinq
13 days
2
-10
/
+12
|
*
Evaluator: Implement variable declaration and definition and variable printing
Baitinq
2025-01-09
1
-7
/
+27
|
*
Evaluator: Implement first version of evaluator that handles print statements
Baitinq
2025-01-08
3
-1
/
+69
|
*
Misc: Dont crash REPL if parsing fails
Baitinq
2025-01-08
1
-1
/
+3
|
*
Parser: general cleanup
Baitinq
2025-01-08
1
-34
/
+22
|
*
Parser: Cleanup node creation
Baitinq
2025-01-08
1
-29
/
+20
|
[next]