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
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
8234e53179
docs: add boolean values
3 years ago
Garrit Franke
c319f8fddc
docs: document for loops
3 years ago
Garrit Franke
9e3a57bd4f
docs: document while loops
3 years ago
Garrit Franke
291ed493b6
docs: document control flow
3 years ago
Garrit Franke
4a4634e2d7
feat: add any type
3 years ago
Garrit Franke
35e88ebbc7
docs: replace rust with sabre
3 years ago
Garrit Franke
7f9bb68dc5
docs: add if statement documentation
3 years ago
Garrit Franke
4edbdda881
docs: add comments documentation
3 years ago
Garrit Franke
17803d8ab9
docs: document functions
3 years ago
Garrit Franke
f55040cc2b
docs: fix function example
3 years ago
Garrit Franke
1fa86badab
docs: add functions
3 years ago
Garrit Franke
78eb37a626
docs: Add type inference notice
3 years ago
Garrit Franke
c0fa388a50
Add "contributing" docs
3 years ago
Garrit Franke
0a17c78194
Add documentation for datatypes
3 years ago
Garrit Franke
00987529f8
Fix variable example in docs
3 years ago
Garrit Franke
34b32d1a34
Add variables section in docs
3 years ago