-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathtest.h
More file actions
47 lines (33 loc) · 794 Bytes
/
test.h
File metadata and controls
47 lines (33 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
The One Programming Language
File: test.h
_ _
/ \ |\ | |_ Max Base
\_/ | \| |_ Copyright 2021; One Language Contributors
**/
#ifndef ONE_TEST_H
#define ONE_TEST_H
// You have to define a macro at CLANG or C compiler: #define _ONE_TEST_
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "../src/builtins/array.h"
#include "../src/builtins/error.h"
#include "../src/builtins/file.h"
#include "../src/parser/lexer/lexer.h"
#include "../src/parser/parser.h"
typedef struct
{
char* source;
Token* tokens[1024];
size_t token_count;
} LexerTest;
// Argument(s)
// Lexer
void test_lexer_log(const char* source, Token** tokens);
bool test_lexer_item(LexerTest test);
bool test_lexer();
// Parser
// Ast
#endif //ONE_TEST_H