Begin raymarcher example and math module, fixing parsing bugs

This commit is contained in:
Krzosa Karol
2022-09-27 22:42:46 +02:00
parent 7ab1b24bbe
commit f388e3f915
7 changed files with 244 additions and 9 deletions

View File

@@ -57,7 +57,6 @@ For modules it's a bit different cause they should be distributed as valid.
-------------------------------------------------------------------------------
- [ ] Basic
- [ ] Calculate size and alignment of struct data types
- [ ] Pass size and alignment calculations to C ?
- [ ] Fix . operator lookups
- [ ] Combining casts with . operator
@@ -72,9 +71,13 @@ For modules it's a bit different cause they should be distributed as valid.
- [ ] Hash tables
- [ ] C Codegen
- [ ] Function renaming to prevent colissions
- [ ] Function renaming to prevent colissions, we can't really touch other stuff cause I want it to be easily debuggable
- [ ] Using language construct
- [ ] Programming constructs
- [ ] Using language construct
- [ ] Function polimorphism
- [ ] Operator Overloading
- [ ] Named loops and breaking out of them
- [ ] Bytecode interpreter
- [ ] Ir
@@ -83,7 +86,8 @@ For modules it's a bit different cause they should be distributed as valid.
- [ ] Parametric Polymorphism
- [ ] Conditional compilation #if
- [ ] Conditional compilation #if (maybe just do something like a conditional load or import?) #import "windows.kl" when os == "windows"
- [ ] Any
- [ ] Assigning to any values like ints etc. should work perhaps? But what type they should have?
@@ -123,6 +127,7 @@ For modules it's a bit different cause they should be distributed as valid.
## Done
- [x] Calculate size and alignment of struct data types
- [x] Consider changing syntax of scopes to use braces { } NO
- [x] Disable ability to parse inner structs, functions, constants etc. ?
- [x] Fix language_basics.kl string index error
@@ -261,6 +266,4 @@ int main(int argument_count, char **arguments){
compile_file(it.absolute_path, COMPILE_AND_RUN);
}
}
__debugbreak();
}