OSDN Git Service

b5387180d34027ad32691313e08a7ef9f7c7f45c
[gleam-language/alpha.git] / compile.cpp
1 #include "common_cpp.h"
2
3 /*
4 * compile.cpp   --compile tokens
5
6 * Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
7
8 * This source code is released on the BSD licensing.
9
10 */
11
12 int compile_onefile(Tokenizer tkns)
13 {
14         Definition def = compile_definition(tkns);
15
16         if(!tkns.isNull())
17         {
18                 //err: too many '}' token and the tree structure was destroyed.
19                 show_err("Too many '}' tokens");
20
21         }else
22         {
23                 //TODO: register def to the default namespace (with good definition name)
24         }
25 }
26
27 Definition compile_definition(Tokenizer tkns)
28 {
29
30 }
31
32
33
34