pull/1/head
Able 2022-04-19 02:37:55 -05:00
parent a9721a7b03
commit 6f4a88caf7
Signed by: able
GPG Key ID: D164AF5F5700BE51
5 changed files with 15 additions and 5 deletions

View File

@ -10,8 +10,10 @@ fn start() -> i32 {
unsafe {
send_signal(PID(1), Signals::Quit);
rand = get_random();
loop {
ret = get_input();
ret = 1;
let x = b"Hi there";
for i in x {
print_char(*i as i64);
}
}
@ -35,3 +37,7 @@ use {
};
mod panic;
extern "C" {
fn print_char(c: i64);
}

View File

@ -4,6 +4,9 @@ pub fn main() {
let p = parse(include_str!("mouse.axel").to_string());
for node in p {
println!("{:?}", node);
println!("{:?}", node.vals);
for funct in node.functs {
println!("{:?}", funct);
}
}
}

View File

@ -3,9 +3,10 @@ val=
x: 1000
y: 200
buttons: true
ver: 1.0.1
fn|
sub: (Num,Num)->(Num);
floatify: (Num,Num)->(Float);
able: (None)->(None);
foo: (None)->(Num);
}
}

View File

@ -11,5 +11,5 @@ pub use core::*;
extern "C" {
pub fn get_random() -> u32;
pub fn get_input() -> u32;
pub fn print_clever_hack(chars8: u64);
}