blob: df9c9b1464a31529b24e77393f2ede81f409c9a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef __COMPILER_H_
#define __COMPILER_H_
#include <stdlib.h>
#include <stdbool.h>
typedef char *string;
const static char TOKENS[] = {'*', '_'};
const static size_t N_TOKENS = 2;
string compile_line(string line, size_t sz_line, string line_or_source);
int find_string(string src, string query, size_t sz_src, size_t sz_query);
bool is_token(char c);
#endif // __COMPILER_H_
|