Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gomjellie/fightingspirit
write C codes in python style (특이점이 온 c언어)
https://github.com/gomjellie/fightingspirit
language-design python-style semicolon starcraft-broodwar transpiler
Last synced: 3 months ago
JSON representation
write C codes in python style (특이점이 온 c언어)
- Host: GitHub
- URL: https://github.com/gomjellie/fightingspirit
- Owner: gomjellie
- License: mit
- Created: 2018-12-19T09:06:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T16:04:28.000Z (about 6 years ago)
- Last Synced: 2024-10-07T14:05:55.085Z (3 months ago)
- Topics: language-design, python-style, semicolon, starcraft-broodwar, transpiler
- Language: JavaScript
- Homepage:
- Size: 1.83 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FightingSpirit
투혼1.3.scx
put brace, semicolon away from your code!
![투혼.scx](DOCS/img/terminal_demo.gif)
## what is it?
Fighting Spirit helps using C language like python style
![바람직한 코딩스타일 예제](DOCS/img/brace_style.png)
if you're python lover you might want to write codes like that way
```c
#includeint 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;
}```
↓ ↓ ↓ ↓ ↓ ↓
```c
#includeint 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] [file...]
```sh
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
```sh
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
```c
;
}
}
```but without this option(default)
```c
;}}
```### --help
you can get help messages
### --version
shows version