https://github.com/ferhatgec/elitetopp
elite -> c++17 converter *experimental
https://github.com/ferhatgec/elitetopp
build converter cpp cpp17 elite
Last synced: about 2 months ago
JSON representation
elite -> c++17 converter *experimental
- Host: GitHub
- URL: https://github.com/ferhatgec/elitetopp
- Owner: ferhatgec
- License: mit
- Created: 2022-02-10T21:26:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T21:30:22.000Z (over 4 years ago)
- Last Synced: 2025-05-31T03:32:27.615Z (about 1 year ago)
- Topics: build, converter, cpp, cpp17, elite
- Language: Rust
- Homepage:
- Size: 4.88 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)topp
## [elite](https://github.com/ferhatgec/elite) -> c++17 converter
### input:
```rs
required_version is 0.1
set ProjectName as "elitetopp"
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:
```cpp
#include
#include
#include
#include
// get_os() and get_arch() here.
int main(int argc, char** argv) noexcept {
if("0.1" != "0.1")
{
std::cout << "elite: Required higher version\n";
return 1;
}
auto ProjectName = "elitetopy";
auto HOME = "/home/gech";
if(argc >= 2 && std::string(argv[argc - 1]) == "install")
{
std::system("cargo install --path .");
if(std::filesystem::exists(std::filesystem::path("/home/gech/.cargo/bin/elitetopy")))
{
std::cout << "elitetopy installed to /home/gech/.cargo/bin/elitetopy.\n";
}
return 1;
}
}
```
### elitetopp licensed under the terms of MIT License.