update
This commit is contained in:
parent
db7bd504e5
commit
8dc1420b8a
Binary file not shown.
|
@ -10,8 +10,10 @@ fn start() -> i32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
send_signal(PID(1), Signals::Quit);
|
send_signal(PID(1), Signals::Quit);
|
||||||
rand = get_random();
|
rand = get_random();
|
||||||
loop {
|
ret = 1;
|
||||||
ret = get_input();
|
let x = b"Hi there";
|
||||||
|
for i in x {
|
||||||
|
print_char(*i as i64);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,3 +37,7 @@ use {
|
||||||
};
|
};
|
||||||
|
|
||||||
mod panic;
|
mod panic;
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
fn print_char(c: i64);
|
||||||
|
}
|
||||||
|
|
|
@ -4,6 +4,9 @@ pub fn main() {
|
||||||
let p = parse(include_str!("mouse.axel").to_string());
|
let p = parse(include_str!("mouse.axel").to_string());
|
||||||
|
|
||||||
for node in p {
|
for node in p {
|
||||||
println!("{:?}", node);
|
println!("{:?}", node.vals);
|
||||||
|
for funct in node.functs {
|
||||||
|
println!("{:?}", funct);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,10 @@ val=
|
||||||
x: 1000
|
x: 1000
|
||||||
y: 200
|
y: 200
|
||||||
buttons: true
|
buttons: true
|
||||||
|
ver: 1.0.1
|
||||||
fn|
|
fn|
|
||||||
sub: (Num,Num)->(Num);
|
sub: (Num,Num)->(Num);
|
||||||
floatify: (Num,Num)->(Float);
|
floatify: (Num,Num)->(Float);
|
||||||
able: (None)->(None);
|
able: (None)->(None);
|
||||||
foo: (None)->(Num);
|
foo: (None)->(Num);
|
||||||
}
|
}
|
|
@ -11,5 +11,5 @@ pub use core::*;
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn get_random() -> u32;
|
pub fn get_random() -> u32;
|
||||||
pub fn get_input() -> u32;
|
pub fn get_input() -> u32;
|
||||||
|
pub fn print_clever_hack(chars8: u64);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue