Cpy – A C-like scripting language, Cpy provides you a way to write Python codes in C syntax
Cpy is a general-purpose object-oriented scripting language with a C-like syntax. It is easy to learn, powerful, has lots of modules: string, regex, socket, http, multithread, multiprocess…
printf("Hello Cpy!\n");
Cpy official website: http://www.ideawu.com/cpy/
Google code: https://github.com/ideawu/cpy
Lovely project. I’m trying to switch from C and Perl to Python but I hate the syntax. This is a great way to workaround this inconvenience. Anyway, why following line produces compile error?
print json.dumps( dict, indent=4 );
line 31:30 mismatched input u’=’ expecting ‘)’
Traceback (most recent call last):
This is valid python statement. Is there cpy way to handle it ? Reply
print json.dumps(dict, 4) Reply
I tryed this for workaround in produced Python code because it not compiles in cpy:
print json.dumps(dict,,,,,,,4)
^
SyntaxError: invalid syntax
Maybe it is good to have a way to embed/inline pure python code directly. Let say p{…. code …}p Reply
its good for example to people like me. I’m already used to C syntax and I don’t have time to learn python . Reply