aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.cc
blob: 66b267f43e7aaa884cfa423b78ed947f9ebbdb15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <lexer.h>
#include <list.h>
#include <stdio.h>
#include <stdlib.h>
#include <token.h>

void
Lexer::init(char *script)
{
  this->script = script;

  tokens = (List *) calloc(1, sizeof(List));
  tokens->init(sizeof(Token));
}

void
Lexer::scan_tokens(void)
{
  printf("%s\n", script);
}