[Shunit2-users] modular construction #include directives
Brought to you by:
sfsetse
|
From: Dick R. <rre...@la...> - 2009-05-26 22:44:06
|
This package is a real treat. I'm interested in modular construction in which each function is written in its own file. The final product, be it a final script or a unit testing script would be constructed by absorbing functions with #include directives. The C preprocessor seems like a natural choice for building those scripts, but it barfs on bang-lines (#! /bin/sh) and shell comments because they do not conform to C syntax. Does anyone know of something that processess #includes or the equivalent, with recursion, and nice error messages, like the C pre-processor but on arbitrary text files? thanks, Dick |