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

Open
opened 1 month ago by Archivist · 0 comments

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 month 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.