diff --git a/frustration.rs b/frustration.rs index 8b6190e..4861248 100644 --- a/frustration.rs +++ b/frustration.rs @@ -59,22 +59,22 @@ struct TableEntry { const PRIMITIVES: [TableEntry; 18] = [ TableEntry {f: ret , name: None, immediate: false}, TableEntry {f: lit , name: None, immediate: false}, + TableEntry {f: add , name: Some(ShortName {bytes: *b"+ ", length: 1}), immediate: false}, TableEntry {f: call , name: Some(ShortName {bytes: *b"cal", length: 4}), immediate: false}, + TableEntry {f: comma_ , name: Some(ShortName {bytes: *b", ", length: 1}), immediate: false}, TableEntry {f: create_ , name: Some(ShortName {bytes: *b"cre", length: 6}), immediate: false}, - TableEntry {f: immediate,name: Some(ShortName {bytes: *b"imm", length: 9}), immediate: false}, - TableEntry {f: tick , name: Some(ShortName {bytes: *b"' ", length: 1}), immediate: false}, + TableEntry {f: div , name: Some(ShortName {bytes: *b"/ ", length: 1}), immediate: false}, TableEntry {f: dot , name: Some(ShortName {bytes: *b". ", length: 1}), immediate: false}, TableEntry {f: dump , name: Some(ShortName {bytes: *b"dum", length: 4}), immediate: false}, - TableEntry {f: word , name: Some(ShortName {bytes: *b"wor", length: 4}), immediate: false}, - TableEntry {f: comma_ , name: Some(ShortName {bytes: *b", ", length: 1}), immediate: false}, - TableEntry {f: store , name: Some(ShortName {bytes: *b"! ", length: 1}), immediate: false}, - TableEntry {f: load , name: Some(ShortName {bytes: *b"@ ", length: 1}), immediate: false}, - TableEntry {f: add , name: Some(ShortName {bytes: *b"+ ", length: 1}), immediate: false}, - TableEntry {f: sub , name: Some(ShortName {bytes: *b"- ", length: 1}), immediate: false}, - TableEntry {f: mul , name: Some(ShortName {bytes: *b"* ", length: 1}), immediate: false}, - TableEntry {f: div , name: Some(ShortName {bytes: *b"/ ", length: 1}), immediate: false}, + TableEntry {f: immediate,name: Some(ShortName {bytes: *b"imm", length: 9}), immediate: false}, TableEntry {f: lbracket, name: Some(ShortName {bytes: *b"[ ", length: 1}), immediate: true}, - TableEntry {f: rbracket, name: Some(ShortName {bytes: *b"] ", length: 1}), immediate: false} + TableEntry {f: load , name: Some(ShortName {bytes: *b"@ ", length: 1}), immediate: false}, + TableEntry {f: mul , name: Some(ShortName {bytes: *b"* ", length: 1}), immediate: false}, + TableEntry {f: rbracket, name: Some(ShortName {bytes: *b"] ", length: 1}), immediate: false}, + TableEntry {f: store , name: Some(ShortName {bytes: *b"! ", length: 1}), immediate: false}, + TableEntry {f: sub , name: Some(ShortName {bytes: *b"- ", length: 1}), immediate: false}, + TableEntry {f: tick , name: Some(ShortName {bytes: *b"' ", length: 1}), immediate: false}, + TableEntry {f: word , name: Some(ShortName {bytes: *b"wor", length: 4}), immediate: false} ]; fn new_core() -> Core {