Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,087 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,566 people online right now. Registration is fast and FREE... Join Now!




HELP: split up source file into segments automatically....

 
Reply to this topicStart new topic

HELP: split up source file into segments automatically....

andrewwan1980
15 Oct, 2007 - 01:47 AM
Post #1

New D.I.C Head
*

Joined: 7 Jun, 2007
Posts: 15


My Contributions
This is not really language specific but more of a source code parsing.

I have a large ASP source file that I like to split up, resulting in separate ASP files, each containing one function and the filename named after that function.

Does anyone know of a tool/script which does this?

PS: I am too lazy to learn Perl/AWK/Python to do this, hence why I believe someone has already written a tool/script to do this. Possibly in C++/etc.
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: HELP: Split Up Source File Into Segments Automatically....
15 Oct, 2007 - 12:01 PM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,858



Thanked: 49 times
Dream Kudos: 550
My Contributions
if I had to do it I would use java and regex. I don't know ASP, but functions usually have a definite structure so it should not be that hard to isolate the functions.

Though it would not be hard to do with a FSM that simple scans and extracts the functions.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:16PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month