Skip to content

Commit

Permalink
everything sort of parses
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Oct 30, 2024
1 parent ff07e3e commit 62a3146
Show file tree
Hide file tree
Showing 8 changed files with 393 additions and 360 deletions.
7 changes: 4 additions & 3 deletions examples/simple.k
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
fn wave(limb: string, joint: number, amount: number) : "Wave a hand back and forth" {
/*fn wave(limb: string, joint: number, amount: number) : "Wave a hand back and forth" {
let pos = get_position(limb: limb, joint: joint);
let pos = set_position(limb: limb, joint: joint, pos: pos + amount);
let pos = set_position(limb: limb, joint: joint, pos: pos - amount);
return pos;
}
}*/

fn main() : "Wave a hand back and forth a few times" {
wave(limb: "right_arm", joint: 0, amount: 45deg);
//wave(limb: "right_arm", joint: 0, amount: 45deg);
return true ? (3 + 2) : "yes";
}
Loading

0 comments on commit 62a3146

Please sign in to comment.