mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-11-16 13:09:16 +00:00
0184e3db7b
Specifically, the following will now be tokenized as keywords: _Alignas _Alignof _Atomic _Bool _Complex _Generic _Imaginary _Noreturn _Static_assert _Thread_local restrict ('inline' was also added as a standard keyword in C99, but ORCA/C already treated it as such.) The parser currently has no support for any of these keywords, so for now errors will still be generated if they are used, but this is a first step toward adding support for them.
25 lines
450 B
Plaintext
25 lines
450 B
Plaintext
MACRO
|
|
&LAB ENUM &LIST,&START
|
|
&LAB ANOP
|
|
AIF C:&~ENUM,.A
|
|
GBLA &~ENUM
|
|
.A
|
|
AIF C:&START=0,.B
|
|
&~ENUM SETA &START
|
|
.B
|
|
LCLA &CNT
|
|
&CNT SETA 1
|
|
.C
|
|
&LIST(&CNT) EQU &~ENUM
|
|
&~ENUM SETA &~ENUM+1
|
|
&CNT SETA &CNT+1
|
|
AIF &CNT<=C:&LIST,^C
|
|
MEND
|
|
|
|
MACRO
|
|
&LAB STR14 &STR
|
|
&LAB DC I1'L:A&SYSCNT'
|
|
A&SYSCNT DC C'&STR'
|
|
DS 14-L:A&SYSCNT
|
|
MEND
|