Commit graph

140 commits

Author SHA1 Message Date
da50da4e08 CLIPPY IS THE MASTER OF ALL! (especially anal retentiveness) 2022-12-31 13:50:08 +01:00
b89e330423 Hooked up the interpreter 2022-12-31 13:49:01 +01:00
2aa9fb278a Errors - Missing space in message 2022-12-31 13:48:00 +01:00
bc4541a50e Interpreter - Initial implementation of the expression evaluator 2022-12-31 13:41:44 +01:00
25ae8b0c16 Errors - Interpreter error 2022-12-31 12:58:25 +01:00
58a986d280 Interpreter - Values 2022-12-31 12:50:44 +01:00
b5e9a1825a Interpreter - Module created 2022-12-31 12:30:02 +01:00
7b66c35e16 Parser - Synchronize method 2022-12-31 12:27:51 +01:00
32dab4ad27 main - Fixed formatting 2022-12-31 10:22:22 +01:00
ffb1994a59 Main - expect(&format!()) is bad, according to clippy 2022-12-31 10:21:38 +01:00
0872f58baf Tokens - Use the matches! macro for is_litteral() 2022-12-31 10:19:36 +01:00
980729ceb3 Tokens - Renamed EOF to Eof 2022-12-31 10:17:25 +01:00
e918d90e39 Scanner - Use is_ascii_digit() instead of is_digit(10) 2022-12-31 10:15:55 +01:00
45ed237818 Parser - Removed useless clone 2022-12-31 10:14:58 +01:00
c0bf521b61 AST - Removed unused import, reformatted. 2022-12-31 10:13:51 +01:00
1e122c77a5 Parser - Comments 2022-12-31 10:12:11 +01:00
fc345f2ffb Parser - Parse expressions 2022-12-31 00:50:31 +01:00
faf50ea53e AST - Use Token.is_litteral() when dumping 2022-12-31 00:50:04 +01:00
ccc6fe0320 Token - is_litteral() method 2022-12-31 00:49:54 +01:00
984ba5f600 Scanner - Reformatted 2022-12-31 00:29:38 +01:00
1fe96bdbf7 Errors - Parser error structure 2022-12-31 00:28:49 +01:00
aab0e0a591 Scanner - Add the EOF token 2022-12-31 00:02:41 +01:00
ed03d565ea Parser - Created structure 2022-12-30 23:50:33 +01:00
8856d733ad AST - Expression node + dumper trait 2022-12-30 23:50:02 +01:00
912c7a265e Tokens - Stop complaining about EOF 2022-12-30 23:20:57 +01:00
c1025153d1 Scanner - Block comments w/ nesting 2022-12-30 20:19:00 +01:00
21778a745e Scanner - Support for identifiers and keywords 2022-12-30 20:11:08 +01:00
3ccbcbc1c2 Scanner - Numbers 2022-12-30 19:10:14 +01:00
75dd3a2db2 Scanner - String litterals 2022-12-30 18:40:56 +01:00
4e9e566a4f Main program - Reset REPL buffer before reading 2022-12-30 18:38:40 +01:00
6fad0fdfc4 Scanner - Slashes and whitespace 2022-12-30 18:28:36 +01:00
5af93af827 Scanner - Moved is_at_end() 2022-12-30 18:21:17 +01:00
8bdfbe59de Scanner - 2-character operators 2022-12-30 18:20:45 +01:00
5747e02107 Scanner - Single-character lexemes 2022-12-30 18:13:52 +01:00
124ffd883f Error handler in separate module + basic scanner module 2022-12-30 16:56:21 +01:00
987118be8b Token-related definitions 2022-12-30 16:47:30 +01:00
dcbb2681c1 Cargo.lock added 2022-12-30 16:33:55 +01:00
7b8f15e072 Error state information 2022-12-30 16:33:34 +01:00
9d485a8c63 Either load a script or run the REPL 2022-12-30 16:17:46 +01:00
437d2fa4fe Initial, empty project 2022-12-30 15:53:19 +01:00