https://github.com/stenbror/pythoncoreconcept
Python 3.9 grammar implemented as a C# 9 library based on record nodes.
https://github.com/stenbror/pythoncoreconcept
Last synced: 18 days ago
JSON representation
Python 3.9 grammar implemented as a C# 9 library based on record nodes.
- Host: GitHub
- URL: https://github.com/stenbror/pythoncoreconcept
- Owner: stenbror
- Created: 2021-02-24T21:27:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-20T14:35:06.000Z (about 5 years ago)
- Last Synced: 2025-12-20T00:18:32.763Z (6 months ago)
- Language: C#
- Homepage:
- Size: 336 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PythonCoreConcept
Python 3.9 grammar implemented as a C# 9 library based on record nodes.
This is start of a Roslyn like parser / analyzer for Python code with grammar like 3.9.x implemented as a C# dotnet 5 project.
Possible extension later, will be a full core runtime system for a Python interpreter / compiler for the .net ecosystem.
You can parse sourcecode from EvalInput, FuncTypeInput & FileInput. SingleInput partialy work. UnitTest for happy path and started on
UnitTests for valid SyntraxError handling in progress.
See UnitTest for documentation about setup of parsing of file.
We now have over 438 UnitTests written and passed. There are more on the way before i have confidence in the parser doing its job corectly.
Suite parsing seems to work now. It will work on unlimited levels of indent. Memory will limit it eventually, but it supports more than 100
levels that standard Python is limited to. For portability, do not exceed 100.
Missing now is TypeComment UnitTests and som Trivia handling in Tokenizer. Close to first package release for parser.