GitXplorerGitXplorer
v

cindent.js

public
1 stars
0 forks
5 issues

Commits

List of commits on branch master.
Unverified
a12f84cc2f4d4a05d656f16c72469abfdf4d54c6

Removed spaces around '[]' operator

vvishesh committed 13 years ago
Unverified
636a7d4b163438e190ca45be6405f18787f7198d

Handle ';' indide paranthesis

vvishesh committed 13 years ago
Unverified
6cec796414e36f396ab161155d14dc946e662a2a

Indents works a bit now. Very basic with lot of obvious problem. Need better plan

vvishesh committed 13 years ago
Unverified
f37fa113b1625dc1e7dd47d3b405d6eb1d4a79af

Starting with prettify

vvishesh committed 13 years ago
Unverified
5918203b08a71def5e550c149b0a01e02a2e145f

Starting with prettify

vvishesh committed 13 years ago
Unverified
6220ea0b0a7c33df9340f833c4a303c17cc3feab

Some more token info with getNextToken() function

vvishesh committed 13 years ago

README

The README file for this repository.

cindent-js

cindent-js is a C source code formatter, indenter and beautifier. This is at its very early stage (not even in working state, while writing this README).

There are many good and mature projects which does this job much better. However, I couldn't find any one which was based on JavaScript. The reason I was looking for something in JavaScript was -

- It can be used in applications which embed JavaScript engines.
- I can make a web application which can use this to indent C source code at
  client side, hence removing the overhead at server.

I've previous zero experience with JavaScript and lexical analysis, yet I chose this only for the sake of being able to put it in web page and people (particularly my college friends) benefit from it anytime, anywhere.

You can find latest version of this project at

Feel free to send me suggestions, feedbacks, bugs or anything. :-)

This project is under BSD License. See COPYING for more info regarding this.