From: Brendan Hansen Date: Tue, 25 Aug 2020 15:27:59 +0000 (-0500) Subject: checking things off X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=95cbcaab847ff4a6992bb3203025ae3e4ad82e8f;p=onyx.git checking things off --- 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 df64f5ca..77225f13 100755 Binary files a/onyx and b/onyx differ