From 95cbcaab847ff4a6992bb3203025ae3e4ad82e8f Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Tue, 25 Aug 2020 10:27:59 -0500 Subject: [PATCH] checking things off --- docs/plan | 16 ++++++++-------- onyx | Bin 732408 -> 732408 bytes 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/plan b/docs/plan index 23908c91..f928a5a3 100644 --- a/docs/plan +++ b/docs/plan @@ -211,20 +211,13 @@ HOW: [X] fallthrough on cases in switch statements - [ ] initializers on switch statements + [X] initializers on switch statements [ ] #file and #line directives - string and u32 respectively that represent the current file and line number where the directive is [ ] transmute - [ ] 'use' enums and packages at an arbitrary scope - - [ ] convert to using an 'atom' like table - - All identifier tokens are given a unique atom ptr, up to string equality. - - This means identifiers can be compared using ptr comparison, instead of string comparison - - This mean no more token_toggle_end!! Woo!! - [ ] Put type info in data section so it is runtime accessible - type name - size @@ -232,6 +225,13 @@ HOW: - struct member names - array length + [ ] 'use' enums and packages at an arbitrary scope + + [ ] convert to using an 'atom' like table + - All identifier tokens are given a unique atom ptr, up to string equality. + - This means identifiers can be compared using ptr comparison, instead of string comparison + - This mean no more token_toggle_end!! Woo!! + [X] Make the lexer much faster - Technically it isn't slow right now - But, profiling says we are spending 50% of the program execution time in the lexer diff --git a/onyx b/onyx index df64f5caae3d40145d9af5269a0f65a34a67f61b..77225f13f1ea77ff40f8280966f62d2d24b257cd 100755 GIT binary patch delta 1628 zcmZY84@_G{90&0J-W3Y6(8i7OZ%Bzl6E{TIABH+6(@lcQ9ApV&1OX#+g38vxl9`eE zrxnRWH%~pY#7vzI$lM}6-P6dlWc*cG7%-PIq$r7Dqfn-UmMEFOAAPx)_>#Nd<@3F} zcYUuf=vfo=todSCS#hMKKJ`?NvwP$bL;J5^E>FAXuHP!uNu?zUJp6cc8QjlrV(;Pw z=5!e4uV7!TwwYriG46{?$9N$wJ>C@r16>2JDoZtDsW%u#d2W0xRP*BaX6zw>w#dNV z#VZnM>kjNaYD(g^e8^Gv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