This is a mirror of official site: http://jasper-net.blogspot.com/

Objective C Class Code Generator

| Tuesday, December 7, 2010
This Objective C code generator (see user's guide) will create an Objective C class - see sample output. It will also automatically generate comments compatible with doxygen. You can then readily copy and paste the code snippet output into XCode. A sample class input is given by default and you will be able to readily test it with a console application source code.

Last but not least, it will persist all your entities definitions in askcodegeneration.com/objectivec/simple-class/simple-class-samples.txt in /Users/account/. By default it will create a Person as sample class from this entry:

"Person" "First Name, Last Name, Age(int)"

do code-block/2
do code-block/3
do code-block/4
do code-block/5
do code-block/6

ret-block: ask-params %askcodegeneration.com/objectivec/simple-class/simple-class-samples.txt "Person" "First Name, Last Name, Age(NSUInteger)"

default-fields: parse/all ret-block/2 ","
fields-types: get-fields-types default-fields
fill-template-body fields-types

ans: ask "class prefix (none generated if blank): "
class-prefix: ans
out: build-markup/vars template-without-namespace [class-name] reduce [(class-name)]

write clipboard:// out
print "copied to clipboard..."
input

;Part 2 not working yet
{
ans: ask rejoin ["Do you want to create a test class for " class-name "? (Y/N): "]
either ans = "Y" [

 out1: copy out

 do code-block/7
 do code-block/8
 do code-block/9

 out: build-markup test-template
 write clipboard:// out
 print "copied to clipboard..."
 input

Read more: Ask Code Generation

Posted via email from .NET Info

0 comments: