* Is there any way to loop backwards? As in...
1 | for(int i = 10; i >= 0; i--) |
I've noticed two styles of for loop from looking through your compiler,
1 2 3 | for x : 0..<10 // range-based loop for x : something... // array-iterating loop? May have got the syntax wrong |
From what I gather, you can only currently loop forward (and I'm not 100% sure what the ... does, but a guess)
* Currently, os_windows.read() provides a byte array. Is there any way to place/cast this into a string? I'm thinking of this to use the current printing functionality.
* It seems at the moment (or forever) the size of arrays only be determined at compile time?
I think that's everything for the moment. In the mean time, more looking through compiler code (I'm slowly working my way through and understanding the compiler, currently made my way through the tokenizer and making my way through the parser. Long way to go still!). I haven't particularly studied compilers in any form, so it's quite interesting to learn.