Commit Graph

62 Commits

Author SHA1 Message Date
skalogryz
f486de07af removed tt_None, fixed bug with improper macro handling
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@784 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-04-28 10:30:07 +00:00
skalogryz
1d04d5aab3 + fixed function-type parsing and pascal code generation. Added some macroses from AvailabilityMacros.h to default.ini
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@750 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-03-24 22:13:48 +00:00
skalogryz
7143b44fd1 + single line function declaration
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@733 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-03-09 10:40:54 +00:00
skalogryz
aa2708fd56 + fixed bugs noted by Josef Ryan (inproper function body, bugs with preprocessor).
+ modifications in the units structure. 
- replaced usage IgnoreTokens (and removed) with TokenReplace

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@732 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-03-09 10:27:56 +00:00
skalogryz
6f8dd5936a allow -refPostFix switch to accept empty string value
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@731 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-03-07 04:54:26 +00:00
skalogryz
9fa9abbd3f added experimental switch -useRef, suggested by Ryan Jonas
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@727 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-28 13:53:56 +00:00
skalogryz
6f30ade18f fixed external functions and variables naming (underscores)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@726 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-28 10:11:19 +00:00
skalogryz
079f53052f added "-id" parameter for quick replace "objc.id" type usage
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@725 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-28 09:17:42 +00:00
skalogryz
e03fc46597 fixes pascal header comments messup
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@724 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-28 07:04:07 +00:00
skalogryz
c331110de0 + removed comments from pascal external variables.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@723 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-26 13:17:21 +00:00
skalogryz
0c2e22da08 + added external functions and variables pascal code generation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@722 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-25 19:40:38 +00:00
skalogryz
baddaf0b5c + started template support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@721 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-25 19:37:55 +00:00
skalogryz
888fe094b7 + started of pascal code generation for objc20 properties
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@711 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-16 20:30:58 +00:00
skalogryz
136187d85e + started separation of ObjCParserUtils unit to ObjCtoPas
* changed Pascal method name generation. Each parameter ':' is now replaced underscore


git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@710 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-02-16 11:50:17 +00:00
skalogryz
4cf4ed40e5 + fixed endless loop for last preprocessor directive, noted by Josef Ryan.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@676 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-26 20:59:20 +00:00
skalogryz
2dfc304bcf + fixed to write out preceding header file comments
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@675 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-26 09:17:47 +00:00
sekelsenmat
78930629dc Adds NSTextView and NSColor to PasCocoa
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@673 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-25 11:56:47 +00:00
skalogryz
50400d4c00 * removed objcparser dependencies on units being under development.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@669 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-23 06:53:34 +00:00
skalogryz
a0f8752046 * improved preprocessor support
+ tt_String token type added

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@664 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-18 14:05:34 +00:00
skalogryz
d818eb1292 + c compiler specific syntax parsing added.
+ GNU CC __attribute__ (...) support
* fixed custom entities parsing

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@662 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-17 22:29:42 +00:00
skalogryz
d650978c91 + objc 2.0 properties parsing (no pascal code generated yet)
+ objc protocol parsing
* cleaning the code



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@661 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-17 22:24:04 +00:00
sekelsenmat
630333ac37 Improves pascocoa and texteditor example
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@587 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-10-06 22:40:47 +00:00
sekelsenmat
135760bc93 Adds more classes and improves texteditor example
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@575 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-09-29 02:12:46 +00:00
skalogryz
76eccaaa0c + additional empty line after {} - exlusion for 'FORWARD' section. FORWARD section is to be used only once, so it's not required
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@476 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-06-09 08:12:20 +00:00
sekelsenmat
8562b56ece Improves Cocoa bindings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@458 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-06-06 01:32:06 +00:00
sekelsenmat
b5df402efa Moves build scripts to build dir.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@448 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-05-09 20:15:38 +00:00
sekelsenmat
bc7c85f132 Improves the PasCocoa bindings. Adds a script to parse appkit. NSWindow and NSButton are already taken from the parser.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@447 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-05-09 19:51:36 +00:00
skalogryz
81763fac6a fixed on usage msgSend function for parametered functions; fix for returning structures as a result
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@446 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-30 13:51:19 +00:00
skalogryz
ece0e03c29 fixed config file usage, that prevented from using more than one config file; fixed result types not converted to objc.id, fixed file including
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@445 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-29 14:10:17 +00:00
skalogryz
aa43c0f2c5 *parsing function type structure field fixed... some testing is still is needed, *supported config file sections are exteneded
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@440 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-25 13:47:19 +00:00
skalogryz
252d362cfa *getClass method should become class method for proper class method calling
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@439 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-23 10:02:36 +00:00
skalogryz
85ef68394d *fixed method naming *method constants are moved to implementation *fixed bit size struct fields
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@438 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-23 07:59:44 +00:00
skalogryz
783f9c197f * nested types fixed
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@436 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-22 11:13:59 +00:00
skalogryz
7574dbc5dc *pascal method implementation is fixed. (objc_send, _fpret, _stret)...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@435 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-22 08:07:37 +00:00
skalogryz
f6f101c184 * calling objc methods are fixed, overload method name fixed
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@426 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-17 13:58:59 +00:00
skalogryz
0d6ffd6e22 * objc methods parsing fixed (for untyped methods) * struct (unions) parsing fixed
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@425 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-16 14:33:21 +00:00
skalogryz
30ea3d4d03 unions convertion added
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@423 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-15 14:13:34 +00:00
skalogryz
9eff426166 =*converting keys improved (mainunit ignoreinclude)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@409 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-08 10:45:08 +00:00
skalogryz
472b178afe *mainunit and ingoreinclude keys are implemented *added additional lines to make generated code more readable *unparsed lines are added as a line comments
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@408 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-08 09:22:54 +00:00
skalogryz
3dd7651b27 objective-c, type parsing improved, expressions parsing improved, bad pascal generated code bug fixed
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@407 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-07 14:06:35 +00:00
sekelsenmat
7e0bcbe685 Adds parser tester.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@404 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-02 23:03:56 +00:00
skalogryz
4d797f023b some bugs fixed
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@403 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-02 14:23:02 +00:00
skalogryz
691c3853d5 some bugs fixed
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@402 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-02 14:22:28 +00:00
skalogryz
ec4c66651a some bugs fixed
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@401 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-02 14:20:33 +00:00
skalogryz
e39229a140 updated to the latest ObjCParserTypes
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@400 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-04-01 06:29:04 +00:00
skalogryz
0c99d758e2 updated. categories are added to the class if possible
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@399 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-03-31 12:45:50 +00:00
skalogryz
6930a5c720 updated
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@398 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-03-31 12:39:54 +00:00
skalogryz
e6d0e75dd6 updated, fixed ifndef usage
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@397 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-03-28 13:03:13 +00:00
skalogryz
e7bebb5271 updated, fixed ifndef usage
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@396 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-03-28 13:02:45 +00:00
skalogryz
256e2072b3 updated
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@395 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-03-28 10:25:55 +00:00