Commit Graph

177 Commits

Author SHA1 Message Date
be3f869258 Made the Code class much more intelligent 2008-06-12 05:40:13 +00:00
2a2c993e87 Code cleanup, Fixed compilation 2008-06-12 05:40:12 +00:00
84ad44c0f4 Fixed a comment 2008-06-12 05:40:11 +00:00
b106efc74f Fixed designator 2008-06-12 05:40:10 +00:00
00da3ddba8 Fixed error handling from the Code function handlers 2008-06-12 05:40:09 +00:00
a058529d60 Initial release 2008-06-10 22:44:44 +00:00
5efa3e0670 API now supporting labels 2008-06-09 00:21:16 +00:00
27009e6835 Updated dependencies on target.h and ../../config.h 2008-06-09 00:20:54 +00:00
241af9326b Temporarily set system-dependant default defines 2008-06-09 00:16:47 +00:00
dcb6613290 Updated a comment 2008-06-04 20:49:47 +00:00
991eb429a3 This set was wrong 2008-06-04 20:49:08 +00:00
7d56fef504 Reflect changes in token codes 2008-06-04 20:47:55 +00:00
e3cd03632b Avoid conflicts with the Cpp token codes 2008-06-04 20:46:38 +00:00
079b65c3c0 Now accept -W as argument to enable warnings 2008-06-04 20:45:19 +00:00
2d1dbc5a29 Re-generated Makefiles 2008-06-04 20:29:51 +00:00
c5262d2821 Updated the C99 structure 2008-06-03 10:05:41 +00:00
8b811beb6d Fixed minor memory leaks 2008-06-03 10:00:14 +00:00
d186d30613 Removed context functions in favor of functions, types and variables handing 2008-06-03 10:00:13 +00:00
86f5fd94ed Updated the C99 structure 2008-06-03 09:52:09 +00:00
1ba882052d Fixed a number of bugs and conforming to the Code API 2008-06-03 09:47:47 +00:00
eb4075fed7 Conforming with the new Code API 2008-06-03 09:39:16 +00:00
0fe6704377 Removed the context call in favor of functions, types and variables handling 2008-06-03 09:31:11 +00:00
2413034ff8 Conforming with the new plugin API 2008-06-03 09:03:53 +00:00
31263a7a98 dot expects "->" and not "=>" 2008-06-03 08:58:55 +00:00
9b4605bbb6 Initial output in the graphviz format 2008-06-03 08:58:54 +00:00
5d68cc5a47 Plugins are now called upon beginning, end or invocation of functions 2008-06-03 08:49:33 +00:00
0fa38ff4c9 Types and identifiers may also start with '_' 2008-05-27 04:34:19 +00:00
ac2b97c6eb Complying with the cpp API update 2008-05-13 13:22:00 +00:00
a180bb1c93 The actual section name for code is .text 2008-05-13 13:21:27 +00:00
39cb96e9e3 Introducing sections and functions in the as target 2008-05-05 20:37:30 +00:00
5cc0e11bf4 Integrated the assembler to the compilation framework 2008-05-05 14:36:07 +00:00
1a38519e55 Conforming to the new configure rules 2008-05-04 02:05:23 +00:00
77a77bc4ae Synchronized dependencies with the code 2008-05-04 02:04:20 +00:00
7d93183a67 No longer need to failover when config.h is incomplete 2008-05-04 02:03:12 +00:00
03057f15c9 Plug-ins need additional flags to have a chance to work 2008-05-04 01:56:40 +00:00
5f4a5bf433 No longer exposing c99_scan() publicly 2008-05-04 01:55:54 +00:00
ee88f4d3f8 Now has to ask cpp to filter white-spaces 2008-05-04 01:53:54 +00:00
914b649005 Code cleanup 2008-05-02 21:30:09 +00:00
b411fb9f0b Getting started using the assembler API 2008-05-02 19:12:20 +00:00
1d7dd68cd0 Added amd64 target 2008-04-24 17:35:24 +00:00
8601c63095 Initial release 2008-04-11 18:20:16 +00:00
557df7e414 Added initial code generation helpers 2008-04-11 13:05:07 +00:00
c2b6091993 Initial release 2008-04-11 12:57:55 +00:00
6e4a2a6db2 Now also handling the CPATH environment variable 2008-04-11 11:49:42 +00:00
91cd493f83 Using "/usr/include" as a default include path 2008-04-11 11:40:06 +00:00
1219681b61 Code cleanup 2008-04-10 17:58:15 +00:00
a7b6acdccc Removed part of the ambiguity between abstract declarators or not in parameters 2008-03-18 18:54:11 +00:00
ec8acd14af Parse until the end of the file even upon errors 2008-03-18 18:07:55 +00:00
72a75f666e Tracking down some more errors 2008-03-14 03:43:14 +00:00
8fdb4a900e Forgot to terminate two sets 2008-03-14 03:32:43 +00:00
1534e4933a Error count was sometimes omitted 2008-03-14 02:49:49 +00:00
adced59b1a Fixed two potentially uninitialized return values 2008-03-14 02:45:41 +00:00
d1257d2e4e Also avoiding segfaults while printing debugging information 2008-03-14 02:40:55 +00:00
451ad81a66 Reporting errors upon unexpected end of file, simplified enumeration list 2008-03-14 02:31:50 +00:00
bb4686874a Fixed more potential segfaults 2008-03-14 02:19:30 +00:00
a281b0da34 Using wrapper around token_in_set() to avoid segfaults 2008-03-14 02:15:12 +00:00
e0316a7f12 Fixed more segfaults 2008-03-14 02:09:03 +00:00
d1fce35c7f Less segfaults and tracking more errors 2008-03-14 01:58:22 +00:00
f8c779142b Trying to fix abstract declarator 2008-03-14 01:37:52 +00:00
03f1e24d2b Reporting the error count after compilation 2008-03-13 19:27:03 +00:00
6ba294f137 Was missing "[" 2008-03-13 19:26:12 +00:00
5e0df735ff Was still empty 2008-03-13 18:59:08 +00:00
ed8f21021b Working some more on parsing 2008-03-13 18:46:21 +00:00
0e27f79296 Simplified parameter list handling 2008-03-13 18:35:12 +00:00
77cf443ad0 Fixed the grammar for parameter-declaration 2008-03-13 18:30:31 +00:00
a969828475 Fixed parsing structs, unions and a segfault 2008-03-13 18:12:46 +00:00
573e14f999 Fixed some error reporting and declaration specifiers 2008-03-13 18:03:19 +00:00
1c583e006e No longer segfault upon error at end of file 2008-03-13 17:28:07 +00:00
9c48578042 Fixed some format strings 2008-03-13 16:48:46 +00:00
e88ac21c19 Initial release 2008-03-13 16:30:58 +00:00
07c1ef501d Fixed most segfaults near EOF 2008-03-13 16:30:47 +00:00
adafc6f2ec Need a full review now that the theoretical grammar is implemented 2008-03-13 16:01:24 +00:00
6c4c881adf Now parsing structs and unions 2008-03-13 15:59:46 +00:00
deea46241f Now parsing enum definitions 2008-03-13 15:39:20 +00:00
ce02812a87 Implemented enumerator-list 2008-03-13 15:34:27 +00:00
bdfaf81886 Implemented enum-specifier 2008-03-13 15:32:11 +00:00
bfd2123c78 Working some more on the parser 2008-03-13 15:24:02 +00:00
2de83f2021 Fixed the typedef-name set 2008-03-12 03:10:59 +00:00
ada596ecf5 Minor optimization 2008-03-12 01:03:13 +00:00
92247055fa Reporting also pre-processing errors 2008-03-11 17:48:11 +00:00
2ef284cec7 Implemented some more 2008-03-11 17:39:36 +00:00
e890e7c02c Fixed designator 2008-03-11 17:38:45 +00:00
638c5e8e00 Implemented initializer list 2008-03-11 17:25:58 +00:00
8e57d7a2b5 Compiles again 2008-03-11 17:24:57 +00:00
80417cc5aa Added a couple sets 2008-03-11 17:23:26 +00:00
b038a0a175 Initial release 2008-03-11 17:23:07 +00:00
7a94499916 More friendly error messages 2008-03-11 16:40:36 +00:00
e6cf500ea0 Simplified operator detection code 2008-03-11 16:35:17 +00:00
068f844945 Got rid of some compilation warnings 2008-03-11 16:06:45 +00:00
f0496089e0 Added crude constant recognition 2008-03-11 16:04:59 +00:00
2c3469c01b Worked on argument expression lists 2008-03-07 18:33:09 +00:00
f6e61ce4e2 Fixed crash upon end of file 2008-03-07 02:11:32 +00:00
dd600a54ba Still working on the parser 2008-03-07 02:07:13 +00:00
1a142ba785 Added more parsing rules 2008-03-07 01:54:16 +00:00
2a412d727e More parsing rules 2008-03-07 00:48:42 +00:00
62eca79a12 Skipping meta tokens when scanning 2008-03-06 20:52:50 +00:00
5a5319c4c7 Disabling debugging information by default 2008-03-06 18:46:50 +00:00
9ae7bbd82e Fixed storage-class-specifier 2008-03-06 18:43:42 +00:00
f6e80139c3 Completing the parsing code 2008-03-06 18:24:18 +00:00
9f8f3fe02b Working some more on the parser 2008-03-06 18:13:12 +00:00