https://github.com/roo-oliv/p2c
This is a software to statically translate Python 3 code to C++14 code.
https://github.com/roo-oliv/p2c
Last synced: 3 months ago
JSON representation
This is a software to statically translate Python 3 code to C++14 code.
- Host: GitHub
- URL: https://github.com/roo-oliv/p2c
- Owner: roo-oliv
- License: gpl-3.0
- Created: 2016-04-14T20:27:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T00:35:37.000Z (about 9 years ago)
- Last Synced: 2025-03-01T19:04:34.263Z (3 months ago)
- Language: C++
- Homepage:
- Size: 166 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# P2C
This software compiles code from a subset of the Python 3 language to C++14 code.# Compiling instructions for a linux environment
`cd ./src`
`make`
# Usage
`./P2C.exe < `
or simply
`./P2C.exe`
After executing, the result of the compilation will be written to the file `/src/output.cpp`
To compile this file one needs to have `pybuiltins.hpp`, which is already supplied in the `/src` folder.
Also it is necessary a compiler that supports C++14, we reccomend the package `g++-5` available for Ubuntu from the repository: `ppa:ubuntu-toolchain-r/test`.
To compile and execute the output file run this command or similar depending on the compiler used:
`g++-5 -std=c++14 -o output.exe output.cpp && ./output.exe`
# Authors
Camila do Amaral Sass
Cauê Massi Correa
Eduardo Thomas Koller
Rodrigo Martins de Oliveira
Wedeueis Braz da Silva