summary refs log tree commit diff
path: root/cccl.c
blob: eedea7c67390b87108769ee2a736828b49ecc54e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "cccl.h"

#include <stddef.h>
#include <stdio.h>


void cccl(struct cccl_File file)
{
    struct cccl_Token tokens[TOKENS_LIMIT];

    size_t tokens_amount = cccl_tokenize(file.buffer, file.size, tokens, TOKENS_LIMIT);
    if (verbose)
        fprintf(stderr, "Read: %lu\n", tokens_amount);
    struct cccl_Node *parsed = cccl_parse(tokens, tokens_amount, 0, 0);
}