[Assorted-commits] SF.net SVN: assorted:[1194] sandbox/trunk/src/misc
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-02-18 06:01:28
|
Revision: 1194 http://assorted.svn.sourceforge.net/assorted/?rev=1194&view=rev Author: yangzhang Date: 2009-02-18 06:01:21 +0000 (Wed, 18 Feb 2009) Log Message: ----------- added cog demo Added Paths: ----------- sandbox/trunk/src/misc/cog/ sandbox/trunk/src/misc/cog/test.cc.cog sandbox/trunk/src/misc/cog/test.mk Added: sandbox/trunk/src/misc/cog/test.cc.cog =================================================================== --- sandbox/trunk/src/misc/cog/test.cc.cog (rev 0) +++ sandbox/trunk/src/misc/cog/test.cc.cog 2009-02-18 06:01:21 UTC (rev 1194) @@ -0,0 +1,11 @@ +#include <iostream> +using namespace std; +int main() { + // [[[cog + // import cog + // for s in ['hello', 'world']: + // cog.outl('cout << "%s" << endl;' % s) + // ]]] + // [[[end]]] + return 0; +} Added: sandbox/trunk/src/misc/cog/test.mk =================================================================== --- sandbox/trunk/src/misc/cog/test.mk (rev 0) +++ sandbox/trunk/src/misc/cog/test.mk 2009-02-18 06:01:21 UTC (rev 1194) @@ -0,0 +1,4 @@ +all: test + +test.cc: test.cc.cog + cog.py $< > $@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |