-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* simplified klang * work in progress... * some stuff * things kind of work * v0.0.1 * format * lint again
- Loading branch information
1 parent
f04302f
commit e858f84
Showing
16 changed files
with
521 additions
and
921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
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; | ||
> wave [arm] arm { | ||
> wave joint [joint] twice { | ||
move joint [joint] on the [arm] arm to 90 | ||
move joint [joint] on the [arm] arm to 0 | ||
} | ||
|
||
" wave joint [1] twice | ||
" wave joint [2] twice | ||
" wave joint [3] twice | ||
} | ||
|
||
fn main() : "Wave a hand back and forth a few times" { | ||
wave(limb: "right_arm", joint: 0, amount: 45deg); | ||
> wave both arms { | ||
" wave [right] arm | ||
" wave [left] arm | ||
} | ||
|
||
" wave both arms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.