oakc
oakc copied to clipboard
A portable programming language with a compact intermediate representation
@adam-mcdaniel Please add more documentation for Oak.
This PR implements the `String` type in `core.ok`, and adds some extensions to the `core.target` files to make memory management more efficient.
This PR adds the `modulus` method to `Target`, which implements the integer modulus operation. It also adds an example named `mod.ok` which demonstrates finding the days in each month and...
Right now, for loops look like the following: ```rust for (let i=0; i
Im wondering what would be needed to add variadic functions. As it would greatly help to implement `printf` and change the following code: ```rust putstr("the first occurence of '"); putchar(needle);...
This PR adds memory leak checks at the end of execution. All this really does is iterate over the `allocated` bitmask to check if any data has not been freed....
I have been doing a bit of research on how to improve error reporting by capturing information about the original source file. Larlpop does not support anything out of the...
To make programs more correct, runtime checks could be added for determining whether or not the program is accessing memory it does not own. To be a valid pointer, it...
I created a barebones VS Code extension implementing syntax highlighting support at https://github.com/kevinramharak/oak-syntax-highlighting. Most of it is based on the rust grammar, but it can easily be extended to support...
It would be nice to support the following integer literals: ```rust let binary = 0b0110; let octal = 0o777; let hex = 0xdead; ``` I think forcing the `b`, `o`...