Garrit Franke
7810052c56
Modules ( #17 )
...
* chore: rename program -> module
* feat: add module builder
* feat: append standard library
* chore: fix clippy warnings
* chore: fix formatting
* feat: imports
* chore: fix formatting
* feat: resolve path deltas to entrypoint
* chore: fix formatting
* fix: path resolver
* chore: refactor stdlib
* docs: document modules
* docs: add "unreleased" section to changelog
* docs: add modules as unreleased bullet in changelog
* feat: resolve nested modules
* fix: clean up file resolvement
* chore: fix clippy lints
3 years ago
Garrit Franke
278d5e6542
Match statements ( #15 )
...
* feat: lexical tokens for match
* feat: parser implementation of match
* feat: js generation for match statements
* feat: match block arms
* feat: default arm for match
* chore: fix formatting
* chore: fix clippy warnings
* docs: add match statement
* feat: use "else" keyword instead of "default"
Co-authored-by: Garrit Franke <garrit@slashdev.space>
3 years ago
Garrit Franke
2c6d81c063
feat: struct definitions ( #12 )
...
* feat: struct definitions
* feat: struct initialization
* chore: fix warning
* feat: use `new` keyword to initialize structs
* feat: infer struct type
* feat: allow structs as types
* feat: basic field access
* chore: fix formatting
* feat: assert function
* docs: add structs
* fix: builtin readme
* chore: refactor field access parsing
* chore: fix formatting
* feat: struct field assignments
* feat: struct field access in expressions
* feat: struct field access on function calls
* chore: fix formatting
* feat: nested structs
* chore: fix formatting
* chore: fix clippy warnings
Co-authored-by: Garrit Franke <garrit@slashdev.space>
3 years ago
Garrit Franke
ebd34541b1
chore: fix warnings
3 years ago
Garrit Franke
6a6547b9c7
feat: assignment operators ( #10 )
...
* feat: assignment operators
* docs: use assignment operators
Co-authored-by: Garrit Franke <garrit@slashdev.space>
3 years ago
Garrit Franke
35e88ebbc7
docs: replace rust with sabre
3 years ago
Garrit Franke
94a3e34776
feat: break and continue
3 years ago
Garrit Franke
031e378538
WIP: Add for loops
3 years ago
Garrit Franke
64b43c7c0c
Add optional types for declares
3 years ago
Garrit Franke
f43aa36432
Add while loop
3 years ago
Garrit Franke
226fb93792
Add copyright notices
3 years ago
Garrit Franke
a00e965193
Fix production build
3 years ago
Garrit Franke
4d5ef86243
Revert "Change function declaration syntax"
...
This reverts commit b21c781a64
.
3 years ago
Garrit Franke
82496b7807
Add remaining comparison operators
3 years ago
Garrit Franke
f1ede63d5f
Add greeter example
3 years ago
Garrit Franke
b21c781a64
Change function declaration syntax
3 years ago
Garrit Franke
e22f5647c6
Add math operations
3 years ago
Garrit Franke
213924bc3d
Tokenize Comma
3 years ago
Garrit Franke
8186b0c56e
Add function arguments
3 years ago
Garrit Franke
24d20784b2
Fix infinite loop when parsing strings
3 years ago
Garrit Franke
5253ced2af
Fix warnings
3 years ago
Garrit Franke
565b0bd9f6
Add token positions
3 years ago
Garrit Franke
b0fe2b0474
Add token positions
3 years ago
Garrit Franke
101ad0878d
Add variable declarations
3 years ago
Garrit Franke
d9a46fe86a
Fix tests and comments
3 years ago
Garrit Franke
01203e3d44
Fix test compilation
3 years ago
Garrit Franke
67a2455e11
Implement return statement
3 years ago
Garrit Franke
de7163c40e
Refactor TokenType
3 years ago
Garrit Franke
cd8c2be6bf
Fix function parsing
3 years ago
Garrit Franke
86ca1cd2dd
Parse functions
3 years ago
Garrit Franke
01981882c2
Add curly braces
3 years ago
Garrit Franke
3a3b0ce99a
Initial commit
3 years ago