- compiler works for basic maths expressions and functions
- basic pointers and reading values from pointers works - writing to pointers not yet implemented (looks painful so a problem for tomorrow) - updated print library. the compiler has this hardcoded in all programs for now
This commit is contained in:
@@ -1,2 +1,8 @@
|
||||
fn factorial(n: u32) -> u32 {}
|
||||
fn main(x: u32, y: u32) -> u32 {}
|
||||
fn main() -> u32 {
|
||||
let x: u32 = 5;
|
||||
let stringgg: str = "Hello world";
|
||||
let test: str = "test";
|
||||
|
||||
println("hello world 2 electric boogaloo");
|
||||
printnum(213);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user