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

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

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
```
!main

import fmt

fn main -> fmt.Println("Hello, World!")
```

C++17
```cpp
#include

auto 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