7bcd13debd9faecd7f74d71aa04a9c7e74a12af0
[cparser] / TODO
1 Refactoring:
2 - eliminate target_architecture.h and replace with stuff in lang_features.h
3 - create structures for variables and functions, removing the omnipotent
4   declaration
5
6 Lexer:
7 - Add preprocessor code.
8 - proper handling of different file encodings, parsing non-ascii strings
9 - We could save some space by holding source positions in a separate (somehow
10   compressed table) and only storing pointers to it on the AST.
11
12 Parser:
13 - disallow storage class specifiers in struct/union members
14 - add constant folding code (optional, ast2firm already does it)
15 - Refactor code, so code to handle number values (and strings?) is an own
16   module and replacable
17 - Add columns to source positions
18 - SourcePositions could be stored selectively on expressions that really need
19   them.
20 - check semantic for functions declared/defined in global scope and declared
21   again in a local scope
22 - for errors relating to function argument, print number of argument
23 - print initialisation type_path for initializer errors
24
25 ast2firm:
26 - handle non-constant initializers
27 - output source file positions for panics.
28 - handle bitfield members with 0 correctly (standard says they finish the
29   current unit)
30 - merge functions entities declared in lokal scope
31
32 Missing Errors:
33
34 Missing Warnings:
35 - dead assignments (int x = 5; x = bla(); -> dead assignment at x = 5;)
36 - check switches for all enums values
37 - catch the if(k = b) cases, maybe require all assignments to be in parentheses
38   (but some few exceptions like toplevel, nested assignments)
39
40 main/driver:
41 - delete output file if we had an error
42
43 Spec-Status:
44 164.gzip:    works
45 175.vpr:     works
46 176.gcc:     sometimes works...
47 181.mcf:     works
48 186.crafty:  works
49 253.perlbmk: works
50 254.gap:     works
51 255.vortex:  works
52 256.bzip2:   works
53 300.twolf:   works