An open API service indexing awesome lists of open source software.

https://github.com/ferhatgec/elitetoc

elite -> c converter *experimental
https://github.com/ferhatgec/elitetoc

c converter elite

Last synced: 2 months ago
JSON representation

elite -> c converter *experimental

Awesome Lists containing this project

README

          

# [elite](https://github.com/ferhatgec/elite)toc
## [elite](https://github.com/ferhatgec/elite) -> c converter

### input:
```rs
required_version is 0.1

set ProjectName as "elitetopy"
set HOME as env "HOME"

for argument "install" [
use exec "cargo install --path ."

for exists "{HOME}.cargo/bin/{ProjectName}" [
println "{ProjectName} installed to {HOME}.cargo/bin/{ProjectName}."
]

use signal "exit"
]
```

### output
```c
#include
#include
#include
#include
#include

// exists(), get_os() and get_arch() here.

int main(int argc, char** argv) {
if("0.1" != "0.1")
{
printf("elite: Required higher version\n");
return 1;
}
char* ProjectName = "elitetoc";
char* HOME = "/home/gech";
if(argc >= 2 && strcmp(argv[argc - 1], "install") == 0)
{
system("cargo install --path .");
if(exists("/home/gech/.cargo/bin/elitetoc"))
{
printf("elitetoc installed to /home/gech/.cargo/bin/elitetoc.\n");
}
return 1;
}
}

```

### elitetoc licensed under the terms of MIT License