11 #include <KiwiEngine/KiwiEngine.h>
29 #define YYSTYPE struct KEToken
35 #define YY_EXTRA_TYPE struct KSParserState *
37 #define YY_DECL int ks_lex(YYSTYPE * yylval_param, ks_scan_t yyscanner, struct KSParserState * pstate)
39 #define YYLEX_PARAM scanner, pstate
struct KEFile * inputFile
Definition: KSLex.h:21
int ks_lex(YYSTYPE *lval, ks_scan_t yyscanner, struct KSParserState *pstate)
Main lex function to get next token.
#define YYSTYPE
Definition: KSLex.h:29
void * ks_scan_t
Definition: KSLex.h:32
#define YY_EXTRA_TYPE
Definition: KSLex.h:35
int ks_lex_destroy(ks_scan_t scanner)
Release the context of lex scanner.
struct CNResource * resource
Definition: KSLex.h:19
struct KEReservedWordTable * reservedWordTable
Definition: KSLex.h:23
void ks_set_extra(YY_EXTRA_TYPE user_defined, ks_scan_t scanner)
Set user defined information to the scanner.
void ks_error(struct KSParserState *pstate, ks_scan_t scanner, const char *msg)
Output parser error.
YY_EXTRA_TYPE ks_get_extra(ks_scan_t scanner)
Get user defined information from the scanner.
Forward declarations for the KiwiScript.
Resource to parse the program.
Definition: KSLex.h:17
struct KEFrame * parsedFrame
Definition: KSLex.h:25
int ks_lex_init(ks_scan_t *scanner)
Initialize the scanner DB for lex.