Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   In CodeWorker, can i print the result in command line environment? (http://www.velocityreviews.com/forums/t739450-in-codeworker-can-i-print-the-result-in-command-line-environment.html)

kittywindz2 12-04-2010 04:36 AM

In CodeWorker, can i print the result in command line environment?
 
I got a problem that I can only get the parsed result for extract_function.cwp by outputting a file but not directly getting the result in the command line environment. I tried modifying it by using traceLing to print the parsed result but it does not work. I also tried making a .cws to deal with it but I got a problem that I cannot pass the argument (the function to be extracted) into the cws. Is there any way to change the output stream to the command-line environment? Thank you very much.

kittywindz2 12-04-2010 07:07 AM

or how can I extract a function. I tried regular expression in ruby, but the problem is that the matching stop at the first closing brace }, the following is the regex:
/((\w+)\s*(\w+)\s*\(([\w\s,<>\[\].=&':\/*]*?)\)\s*(const)?\s*\{([^\}])+\})/


All times are GMT. The time now is 08:21 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57