repo.or.cz
/
mcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Removed commented-out main() in scanner.c
[mcc.git]
/
cc.c
blob
a4d536fafe8785f062c03d3946c741b686b453d7
1
#include
"cc.h"
2
#include
"stree.h"
3
#include
"scanner.h"
4
#include
"parse.h"
5
#include
"stdio.h"
6
#include
"stdlib.h"
7
#include
"errors.h"
8
9
int
main
(
int
argc
,
char
**
argv
)
10
{
11
struct
cc cc_obj
, *
cc
= &
cc_obj
;
12
13
lex_create
(&
cc
->
lex
);
14
cpp_include_file
(&
cc
->
lex
.
cpp
,
"<stdin>"
,
stdin
,
false
);
15
lex_start
(&
cc
->
lex
);
16
cc_parse
(
cc
);
17
stree_dump
(
cc
,
cc
->
stree
,
stdout
);
18
stree_destroy
(
cc
->
stree
);
19
lex_delete
(&
cc
->
lex
);
20
21
return
0
;
22
}
23