#5 Use of reserved identifiers in the lexing code to define hard tokens

Open
opened 1 week ago by Archivist · 0 comments
Archivist commented 1 week ago

The following identifiers are reserved and should not be used by ink (underscore followed by capital letter).

#define _KEYWORD_INK_FUNCTION "fn"
#define _KEYWORD_INK_MACRO "macro"
#define _KEYWORD_INK_DO "do"
#define _KEYWORD_INK_END "end"
#define _KEYWORD_INK_RETURN "return"

Current

#define _KEYWORD_INK_FUNCTION "fn"
#define _KEYWORD_INK_MACRO "macro"
#define _KEYWORD_INK_DO "do"
#define _KEYWORD_INK_END "end"
#define _KEYWORD_INK_RETURN "return"
Expected output:

nasal demons

The following identifiers are reserved and should not be used by ink (underscore followed by capital letter). ```c #define _KEYWORD_INK_FUNCTION "fn" #define _KEYWORD_INK_MACRO "macro" #define _KEYWORD_INK_DO "do" #define _KEYWORD_INK_END "end" #define _KEYWORD_INK_RETURN "return" ``` ## Current ```c #define _KEYWORD_INK_FUNCTION "fn" #define _KEYWORD_INK_MACRO "macro" #define _KEYWORD_INK_DO "do" #define _KEYWORD_INK_END "end" #define _KEYWORD_INK_RETURN "return" ``` ###### Expected output: `nasal demons`
Archivist added the
bug
label 1 week ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.