Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 23 lines (21 sloc) 0.283 kb
5c324a9 @timtadh Semantic representation of three address code added. It should be sel…
authored
1 int printf;
2 char getchar;
53f1ced @timtadh function_definition now has it attrs.identifier correctly set. So wor…
authored
3 int EOF = -1;
4
e9552d0 @timtadh Added some more C code to test. Re-arranged some code.
authored
5 int main()
6 {
71e2e37 @timtadh Added verbose mode
authored
7 int c, n1;
8 c = 0;
53f1ced @timtadh function_definition now has it attrs.identifier correctly set. So wor…
authored
9 n1 = 0;
71e2e37 @timtadh Added verbose mode
authored
10 while (c/* = getchar()*/ != EOF)
e9552d0 @timtadh Added some more C code to test. Re-arranged some code.
authored
11 {
71e2e37 @timtadh Added verbose mode
authored
12 if (c == 1/*'\n'*/)
53f1ced @timtadh function_definition now has it attrs.identifier correctly set. So wor…
authored
13 {
71e2e37 @timtadh Added verbose mode
authored
14 //n1 += 1;
53f1ced @timtadh function_definition now has it attrs.identifier correctly set. So wor…
authored
15 }
e9552d0 @timtadh Added some more C code to test. Re-arranged some code.
authored
16 }
71e2e37 @timtadh Added verbose mode
authored
17 //printf("Number of Lines: %d\n", n1);
e9552d0 @timtadh Added some more C code to test. Re-arranged some code.
authored
18 }
bbefd9e @timtadh Symbol table updated to implement scope.
authored
19
20 int sub()
21 {
22 int x;
23 }
Something went wrong with that request. Please try again.