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.
7size_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[].
10size_t process_includes(Token tokens[], size_t token_count, Token output[], size_t max_tokens);
11
12#endif
size_t tokenize(const char *src, Token tokens[])
Definition lexer.c:40
size_t process_includes(Token tokens[], size_t token_count, Token output[], size_t max_tokens)
Definition lexer.c:138
Definition kinnie.h:53