update punch list
This commit is contained in:
parent
fb2488c850
commit
647f3d4463
|
@ -240,11 +240,16 @@ println!("{a} // {b_high}/{b_low} // {c}");
|
||||||
```
|
```
|
||||||
|
|
||||||
To reiterate the punch list that *I would have needed for Computer Class 1*:
|
To reiterate the punch list that *I would have needed for Computer Class 1*:
|
||||||
* [ ] jump instructions need 16 bits of operand
|
* [x] jump instructions need 16 bits of operand
|
||||||
|
- Whew, that took longer than I expected
|
||||||
* [ ] splatterns
|
* [ ] splatterns
|
||||||
- [ ] validator should ensure splatterns are the longest patterns in a form
|
- [ ] validator should ensure splatterns are the longest patterns in a form
|
||||||
* [ ] add guards to loop forms
|
* [ ] improve validator
|
||||||
* [ ] check loop forms against function calls: do they still work the way we want them to?
|
- [ ] Tuples may not be longer than n members
|
||||||
|
- [ ] Loops may not have splatterns
|
||||||
|
- [ ] Identify others
|
||||||
|
* [x] add guards to loop forms
|
||||||
|
* [x] check loop forms against function calls: do they still work the way we want them to?
|
||||||
* [ ] tail call elimination
|
* [ ] tail call elimination
|
||||||
* [ ] stack traces in panics
|
* [ ] stack traces in panics
|
||||||
* [ ] actually good error messages
|
* [ ] actually good error messages
|
||||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -75,10 +75,14 @@ pub fn run(src: &'static str) {
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
env::set_var("RUST_BACKTRACE", "1");
|
env::set_var("RUST_BACKTRACE", "1");
|
||||||
let src = "
|
let src = "
|
||||||
loop (1) with {
|
let foo = loop (1, 2, 3) with {
|
||||||
(0) -> :done
|
(0, 0, 1) -> :done
|
||||||
(1) -> recur (0)
|
(1, 2, 3) -> recur (4, 5, 6)
|
||||||
|
(4, 5, 6) -> recur (:foo, :bar, :baz)
|
||||||
|
(:foo, :bar, :baz) -> recur (0, 0, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(foo, 42)
|
||||||
";
|
";
|
||||||
run(src);
|
run(src);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user