d377c8448f
nix: replace rust-overlay with fenix
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-08-14 14:19:17 +05:30
af30410aab
parser: fix newline checks after statements
...
since there is no EOL delimiter like ';', we have to check for newline to avoid something like `a = 4 + 4 b = a`
also added tests for expr parsing
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-08-14 00:57:17 +05:30
360687f3c0
ast: make static an entity
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-08-13 22:20:51 +05:30
f7ec10646b
parser: initial expression parsing logic
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-08-13 07:37:14 +05:30
ad57170010
lexer: allow underscore for identifiers
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-08-13 07:35:20 +05:30
1a2563f756
args: use PathBuf instead of string for file path
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-08-13 07:32:55 +05:30
d70b196042
parser: init
...
does not support many expressions
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-07-31 00:27:55 +05:30
771363106f
lexer: add exponents to floating literals
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-07-30 18:46:00 +05:30
384f382cfc
ast: random changes
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-07-30 16:37:12 +05:30
bcc3b29fc5
ast: rename Type to Primitive
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-07-30 01:51:13 +05:30
589fa73d7c
lexer: add comma and fix newline
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-07-30 01:50:43 +05:30
32484b3d6a
ast: add a naive ast for now
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-07-29 23:38:06 +05:30
a15b3d013f
ci: merge jobs
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-07-29 20:36:06 +05:30
e8192df9e2
revive project
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-07-29 20:28:14 +05:30
879d3d3b65
src/lexer.rs: rename enums and add backslash to escape newline
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-04-08 17:13:47 +05:30
0d7a4bdd4e
src/lexer.rs: implement a naive and dumb lexer
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-04-08 02:10:57 +05:30
6979a02408
add better panic message and restructure src/args.rs
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-04-08 02:10:36 +05:30
57ce926af6
add README and LICENSE
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-04-06 17:21:08 +05:30
e956976a2d
fix clippy checks
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-04-06 17:14:53 +05:30
a7112b3f8e
initial commit
...
Signed-off-by: Amneesh Singh <natto@weirdnatto.in >
2023-04-06 17:05:58 +05:30