kinnie
Loading...
Searching...
No Matches
lexer.h
Go to the documentation of this file.
1
#ifndef LEXER_H
2
#define LEXER_H
3
4
#include "
kinnie.h
"
5
6
// Tokenizes a null-terminated source string into tokens[]; returns the number of tokens produced.
7
size_t
tokenize
(
const
char
*src,
Token
tokens[]);
8
9
// Expands all `add "file"` directives by inlining the tokenized content of each file; returns the total token count written to output[].
10
size_t
process_includes
(
Token
tokens[],
size_t
token_count,
Token
output[],
size_t
max_tokens);
11
12
#endif
kinnie.h
tokenize
size_t tokenize(const char *src, Token tokens[])
Definition
lexer.c:40
process_includes
size_t process_includes(Token tokens[], size_t token_count, Token output[], size_t max_tokens)
Definition
lexer.c:138
Token
Definition
kinnie.h:53
include
lexer.h
Generated by
1.16.1