Chris Lattner
|
8693a519d4
|
Implement initializer parsering.
llvm-svn: 38900
|
2006-08-13 21:54:02 +00:00 |
Chris Lattner
|
0e89462b08
|
Parse things like 'struct X;'
llvm-svn: 38898
|
2006-08-13 19:58:17 +00:00 |
Chris Lattner
|
dbb2a46915
|
Add a new ExpectAndConsume method to make parsing easier, and add a new
ConsumeAnyToken method.
llvm-svn: 38894
|
2006-08-12 19:26:13 +00:00 |
Chris Lattner
|
6259172911
|
Implement parsing of array declarators like:
int Array[*(int*)P+A];
llvm-svn: 38890
|
2006-08-12 18:40:58 +00:00 |
Chris Lattner
|
5bd57e0c73
|
Significant improvements to error recovery
llvm-svn: 38872
|
2006-08-11 06:40:25 +00:00 |
Chris Lattner
|
4564bc1123
|
Factor some code into the new Parser::MatchRHSPunctuation method.
llvm-svn: 38864
|
2006-08-10 23:14:52 +00:00 |
Chris Lattner
|
eb8a28f7b7
|
Rename some files
llvm-svn: 38855
|
2006-08-10 18:43:39 +00:00 |
Chris Lattner
|
53361ac130
|
Refactor init-declarator-list parsing code to allow for-statements to have
initializers in them.
llvm-svn: 38847
|
2006-08-10 05:19:57 +00:00 |
Chris Lattner
|
0ccd51ebe2
|
Start parsing statements and function bodies. This implements
Parser/statements.c:test1.
llvm-svn: 38842
|
2006-08-09 05:47:47 +00:00 |
Chris Lattner
|
fff824fe14
|
Simplify and fill out parsing of function bodies.
llvm-svn: 38841
|
2006-08-07 06:31:38 +00:00 |
Chris Lattner
|
bf320c84a5
|
better comments, infrastructure for parsing function bodies.
llvm-svn: 38839
|
2006-08-07 05:05:30 +00:00 |
Chris Lattner
|
eec40f9990
|
Start implementing error recovery, this implements test/Parser/recovery-1.c
llvm-svn: 38833
|
2006-08-06 21:55:29 +00:00 |
Chris Lattner
|
acd58a3c33
|
Parse parenthesized and function declarators now, allowing us to parse things
like: "void (*signal(int, void (*)(int)))(int);"
llvm-svn: 38824
|
2006-08-06 17:24:14 +00:00 |
Chris Lattner
|
15356a7065
|
Start capturing declarator information in a new Declarator object.
llvm-svn: 38823
|
2006-08-06 00:02:28 +00:00 |
Chris Lattner
|
971c6b681a
|
Add scaffolding for scopes.
llvm-svn: 38821
|
2006-08-05 22:46:42 +00:00 |
Chris Lattner
|
d286488c5f
|
Make error recovery "better"
llvm-svn: 38819
|
2006-08-05 08:09:44 +00:00 |
Chris Lattner
|
d9c3c59fc0
|
Continue work on declspecs and declarations
llvm-svn: 38818
|
2006-08-05 06:26:47 +00:00 |
Chris Lattner
|
b9093cd1d0
|
Add an initial cut at a datastructure for holding declspec's.
llvm-svn: 38805
|
2006-08-04 04:39:53 +00:00 |
Chris Lattner
|
c0acd3d621
|
Split declaration parsing out into Declarations.cpp
llvm-svn: 38804
|
2006-07-31 05:13:43 +00:00 |
Chris Lattner
|
70f32b7d68
|
Add initial very-incomplete support for parsing declarations. We just manage
to be able to parse "int x;" now.
llvm-svn: 38803
|
2006-07-31 05:09:04 +00:00 |
Chris Lattner
|
0bb5f835e4
|
initial support for parsing, right now just ;'s at the top level, but this
adds most simple scaffolding.
llvm-svn: 38802
|
2006-07-31 01:59:18 +00:00 |