https://github.com/stenbror/pythoncorenative
A native C++ 17 implemented PythonCore started with Python 3.10 based parser.
https://github.com/stenbror/pythoncorenative
Last synced: 12 months ago
JSON representation
A native C++ 17 implemented PythonCore started with Python 3.10 based parser.
- Host: GitHub
- URL: https://github.com/stenbror/pythoncorenative
- Owner: stenbror
- License: bsl-1.0
- Created: 2021-04-25T17:16:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-20T16:37:28.000Z (about 5 years ago)
- Last Synced: 2025-03-11T20:19:15.086Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 488 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PythonCoreNative
This is the start of a complete Python interpreter, written from scratch in modern C++ 17 and as a first step will implement a complete Roslyn like parser for Python 3.10 grammar.
Open project in Visual Studio Code and open terminal.
To build:
mkdir -p build
cd build
cmake ..
make
To execute UnitTests. They are written as we go, execute the following:
tests/TestPythonCore
This will result in a dynamic library like on Linux => libPythonCoreNative.so and a UnitTest Executable linked against it. TestPythonCore.
I develop this project on an Apple MacPro M1 13" and of cource make sure it builds on that system first. But i also check out code and build on Raspberry Pi 4 CM4 machine and a HP Spectre X360 with Ubuntu 21.04 to make sure it builds from checkout of code under Linux. For now i haven't tested building on a Windows machine.
UnitTests for all EvalInput rules are implemented and passed by June 5th 2021.