Roberto Raggi
8f4bdd5355
Removed unused method Parser::maybeSimpleExpression()
2009-10-20 11:29:53 +02:00
Roberto Raggi
7c62901919
Removed unused method Parser::maybeFunctionCall()
2009-10-20 11:28:38 +02:00
Roberto Raggi
13675cf6ed
Cleanup the C++ front-end.
...
Removed CPLUSPLUS_BEGIN/END_NAMESPACE & co and made it possible to compile the parser with CPLUSPLUS_WITHOUT_QT.
2009-10-20 11:21:25 +02:00
Roberto Raggi
fe2c9cc16d
Improved parsing of ambiguous statements.
...
Done with Erik Verbruggen
2009-10-19 17:48:57 +02:00
Erik Verbruggen
077c19a661
Fix for invalid parsing of "(a)[b]", including test cases.
2009-10-19 14:50:20 +02:00
Roberto Raggi
77aa306478
Removed the MacroResolver
...
Unfortunately, the MacroResolver does not scale and we get pretty bad performances when parsing big projects.
2009-10-07 13:57:45 +02:00
Erik Verbruggen
f1e665463b
Added protocol & class definedness checks, and added property attribute checks.
2009-10-05 18:02:01 +02:00
Roberto Raggi
9a21143384
Implemented a simple(fast?) strategy to resolve macro references.
2009-09-30 17:17:11 +02:00
Roberto Raggi
e50d60ac97
Introduced MacroResolver.
2009-09-30 17:17:11 +02:00
hjk
93cbef8724
long live the king
2009-08-14 09:30:56 +02:00
Erik Verbruggen
ffccb612af
Parsing fix for casts in ObjC message expressions.
2009-08-10 12:44:52 +02:00
Erik Verbruggen
4e7881577d
Parser fix for ObjC methods.
2009-08-06 13:44:33 +02:00
Erik Verbruggen
ca34b0ca1c
Cleaned the ObjC AST up.
2009-08-05 17:14:08 +02:00
Roberto Raggi
393806696d
The parser needs to a valid AST when the parsing method returns `true'.
2009-08-05 09:59:11 +02:00
Erik Verbruggen
e53d23d55c
Merged ObjCMethodDefinitionAST into ObjCMethodDeclarationAST.
2009-08-04 16:22:24 +02:00
Erik Verbruggen
e205126774
Added @synchronized parsing for Objective-C.
2009-07-31 16:53:05 +02:00
Erik Verbruggen
4a0da2c6f2
Added Semantic checks for ObjC methods.
2009-07-31 16:03:48 +02:00
Erik Verbruggen
83e35eb9fb
Another fix for ObjC fast-enum parsing.
2009-07-29 10:39:27 +02:00
Erik Verbruggen
123e2f6349
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
2009-07-29 10:06:42 +02:00
Erik Verbruggen
f04dbf05b9
Fix for ObjC fast-enumeration parsing.
2009-07-29 10:06:14 +02:00
Erik Verbruggen
7e65890ca2
Fixed a typo in foreach parsing, which stored the initializer in the
...
expression, which subsequently got overwritten by the (real) expression.
2009-07-29 09:46:38 +02:00
Erik Verbruggen
26267c0344
Improved ObjC parsing, and added semantic checks.
2009-07-28 16:34:15 +02:00
Erik Verbruggen
336e1dc5fb
Fixes for the ObjC AST. Now it should be complete.
2009-07-20 11:46:59 +02:00
Erik Verbruggen
34987cc1ca
Added more AST for ObjC.
2009-07-20 10:04:44 +02:00
Erik Verbruggen
a3d129527f
Added ObjC method prototypes to the AST.
2009-07-16 17:38:24 +02:00
Erik Verbruggen
7fbec4f28e
Added ObjC properties to the AST.
2009-07-16 15:50:42 +02:00
Erik Verbruggen
fa03d46984
Added ObjC @interface and @implementation member declarations.
2009-07-16 14:31:13 +02:00
Erik Verbruggen
ef58d082ea
Added ObjC encode expressions.
2009-07-16 12:44:47 +02:00
Erik Verbruggen
a262fce6d0
Added ObjC protocol expressions.
2009-07-16 12:18:05 +02:00
Erik Verbruggen
e5377519d6
Added varargs parsing for ObjC send_msg arguments.
2009-07-16 11:27:45 +02:00
Erik Verbruggen
c8f155c0fc
AST additions for ObjC send_msg.
2009-07-15 12:11:07 +02:00
Roberto Raggi
6c0854df66
Improved the parsing of parameter declarations clause.
2009-07-13 14:29:20 +02:00
Erik Verbruggen
e70bb220b1
Added @dynamic parsing.
2009-07-13 11:21:06 +02:00
Erik Verbruggen
08a85a51bf
Added @synthesize and fixed @property.
2009-07-13 11:16:22 +02:00
Erik Verbruggen
78cceecc28
Added AST for a bit of ObjC.
2009-07-13 11:08:11 +02:00
Roberto Raggi
3e54a65a69
Replaced T_INT_LITERAL and T_FLOAT_LITERAL with T_NUMERIC_LITERAL.
2009-07-10 15:45:09 +02:00
Roberto Raggi
7e7c944628
Stop at class or elaborated class specifiers when recovering declarations.
2009-07-06 09:53:25 +02:00
Roberto Raggi
ca62e4f61c
Fixed the parsing of foreach statements. The initializer expression needs to be an assignment expression.
2009-07-03 11:31:00 +02:00
Roberto Raggi
3cdd48067c
Introduced ForeachStatementAST and the bits to parse foreach statements when qtMocRun is enabled.
2009-07-03 09:12:58 +02:00
Thorbjørn Lindeijer
341a843bbf
Removed two stray backslashes
2009-06-29 14:30:43 +02:00
Roberto Raggi
298b6ac520
Oops, restore the value of blockErrors()
2009-06-19 14:48:07 +02:00
Roberto Raggi
20545fd4b1
Fixed more template-id vs expressions ambiguites.
2009-06-19 12:39:32 +02:00
Roberto Raggi
0c03c1b9f9
Fixed template-id vs binary expression followed by a C-cast expression ambiguity.
2009-06-19 11:59:26 +02:00
Roberto Raggi
9c038180d8
Improved compatibility with the gcc extensions.
2009-06-18 17:49:17 +02:00
Roberto Raggi
9a8e724f15
Don't search for undefined symbols in ambiguous typeof expressions.
2009-06-18 14:22:06 +02:00
Roberto Raggi
c222f2aa27
Some cleanup in the AST nodes.
2009-06-17 16:08:33 +02:00
Jason McDonald
884b7af769
Update license headers and sales contact details.
...
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Roberto Raggi
0497c535a2
cleanup
2009-06-05 09:44:37 +02:00
Thorbjørn Lindeijer
ecc2b25ddc
Extended the AST with references to more tokens
...
Mainly comma tokens. Referencing all tokens is necessary to be able to
implement pretty-printing based on the AST while maintaining user
formatting.
Reviewed-by: Roberto Raggi
2009-05-11 17:03:51 +02:00
Roberto Raggi
1a1b841cdb
Fixed parsing of ambiguous name ids.
2009-04-28 19:02:28 +02:00