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
- Host: GitHub
- URL: https://github.com/ferhatgec/elitetoc
- Owner: ferhatgec
- License: mit
- Created: 2022-02-11T22:00:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T22:04:07.000Z (over 4 years ago)
- Last Synced: 2025-06-06T21:03:38.501Z (about 1 year ago)
- Topics: c, converter, elite
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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