From e594cb6298d04e11941815bb47df9580e72bdf18 Mon Sep 17 00:00:00 2001 From: psf Date: Sun, 27 Mar 2022 00:08:28 -0700 Subject: [PATCH] alphabetized table! --- frustration.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 {