https://github.com/xyproto/ogpiler
Og to C++17 compiler
https://github.com/xyproto/ogpiler
Last synced: 5 months ago
JSON representation
Og to C++17 compiler
- Host: GitHub
- URL: https://github.com/xyproto/ogpiler
- Owner: xyproto
- License: mit
- Created: 2018-10-25T08:31:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T08:41:44.000Z (almost 7 years ago)
- Last Synced: 2025-01-11T00:51:00.701Z (9 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ogpiler
Og to C++17 transpiler.
## Requirements
* `og` in the path, from https://github.com/Champii/og
* `go2cpp` in the path, from https://github.com/xyproto/go2cpp## Usage example
ogpiler -o main.cpp main.og
## Installation
install -Dm755 ogpiler /usr/bin/ogpiler
## Example transformation
Og
```
!mainimport fmt
fn main -> fmt.Println("Hello, World!")
```C++17
```cpp
#includeauto main() -> int
{
std::cout << "Hello, World!" << std::endl;
return 0;
}```
## General info
Note that this is alpha quality software, at an early stage!
* Version: 0.0.0
* License: MIT