iloahz / Codefensive

Home Page:http://codefensive.appspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This is a geek thing trying to make the source code unreadable. Now supports C++ only.

Algorithm

  • Replace all the variables with different numbers of '_'
  • Replace if-else with ?:
  • Transform loops(e.g. for, while, do-until) to recursive functions
  • Replace constants with variables

To-Do list

  • Deal with the content in ()
  • Complete support to typedef
  • Support class
  • Exchange for(s1;s2;s3)s4; with while(s1)s2;

Updates

  • Update 2011-7-5: Since I am not familiar with PHP....So I plan to use C++ or Python as the process language. Still we can create a webpage with CGI to achieve the same function.

  • Update 2011-12-23: PHP? What's that ridiculous? As I currently know, building an AST(Abstract syntax tree) would be the best choice, Python may be choosed as the processing language in order to support GAE. btw gcc is definitely unreadable.

  • Update 2011-12-23: AST may not be needed.

  • Update 2011-12-24: The first available version. 0.1 Beta @ (http://codefensive.appspot.com/).

About

http://codefensive.appspot.com/


Languages

Language:Python 50.2%Language:C++ 49.8%