1.0.1 • Published 5 years ago

fighting-spirit v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

FightingSpirit

투혼1.3.scx

put brace, semicolon away from your code!

투혼.scx

what is it?

Fighting Spirit helps using C language like python style

바람직한 코딩스타일 예제

if you're python lover you might want to write codes like that way

#include <stdio.h>

int main() {
    for (int i = 0; i < 10; i++) {
        for (int j = 0; j < 10; j++) {
            printf("%d times %d is %d \n", i, j, i * j);
        }
    }
    return 0;
}
  ↓ ↓ ↓ ↓ ↓ ↓
#include <stdio.h>

int main()                                                                         {
    for (int i = 0; i < 10; i++)                                                   {
        for (int j = 0; j < 10; j++)                                               {
            printf("%d times %d is %d \n", i, j, i * j)                            ;}}
    return 0                                                                       ;}

How to use fighting spirit

Install

npm install fighting-spirit -g

you might need to install node first (if you don't have it yet)

Run

Usage: fight options

fight

basically it's all you need to do but there's more options

args

file... is optional, if it's empty it will search reculsively every sources from working directory

fight ./source1.c source2.c

options

--outDir

Not yet implemented

Redirect output structure to the directory.

--no-overwrite

with this option, literally it will not overwrite your source

but it will make new file(extension named .cf, .hf) and write.

--no-shorten

with this option, seperate closing brace and semicolon

for example,

without this option

                           ;
                           }
                           }

but without this option(default)

                           ;}}

--help

you can get help messages

--version

shows version

1.0.1

5 years ago

1.0.0

5 years ago