mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Added lists of tokens and keywords, ready for use
This commit is contained in:
15
source/toy_keywords.h
Normal file
15
source/toy_keywords.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "toy_token_types.h"
|
||||
#include "toy_common.h"
|
||||
|
||||
typedef struct {
|
||||
const Toy_TokenType type;
|
||||
const char* keyword;
|
||||
} Toy_KeywordTypeTuple;
|
||||
|
||||
extern const Toy_KeywordTypeTuple Toy_private_keywords[];
|
||||
|
||||
//access
|
||||
const char* Toy_private_findKeywordByType(const Toy_TokenType type);
|
||||
Toy_TokenType Toy_private_findTypeByKeyword(const char* keyword);
|
||||
Reference in New Issue
Block a user