diff options
| author | Mike Buland <mike@xagasoft.com> | 2026-06-11 15:20:49 -0700 |
|---|---|---|
| committer | Mike Buland <mike@xagasoft.com> | 2026-06-11 15:20:49 -0700 |
| commit | 9083d5843f5a39fafacde81242b817021f9cb818 (patch) | |
| tree | e65371f368f151a30e10631149fdd970de615e60 /src/lib.rs | |
| parent | c9889f7c6622def3b6badde2738c3e912b48144f (diff) | |
| download | crimtag-9083d5843f5a39fafacde81242b817021f9cb818.tar.gz crimtag-9083d5843f5a39fafacde81242b817021f9cb818.tar.bz2 crimtag-9083d5843f5a39fafacde81242b817021f9cb818.tar.xz crimtag-9083d5843f5a39fafacde81242b817021f9cb818.zip | |
Halfway there. About half the code is going away.
I'm learning better how to take advantage of features of rust to
simplify the code a lot. It's actually really cool.
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
| @@ -64,9 +64,7 @@ type Properties = HashMap<String, String>; | |||
| 64 | enum Token { | 64 | enum Token { |
| 65 | Loop(Identifier, Vec<Token>), | 65 | Loop(Identifier, Vec<Token>), |
| 66 | Show(Identifier,Properties), | 66 | Show(Identifier,Properties), |
| 67 | If(Identifier, Vec<Token>), | 67 | If(Identifier, Vec<Token>, Vec<Token>), |
| 68 | ElIf(Identifier, Vec<Token>), | ||
| 69 | Else(Vec<Token>), | ||
| 70 | Text(String), | 68 | Text(String), |
| 71 | } | 69 | } |
| 72 | 70 | ||
