Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oguzalb/Fayton
A minimalistic python interpreter written in c, just to see where i can get to :)
https://github.com/oguzalb/Fayton
Last synced: 3 months ago
JSON representation
A minimalistic python interpreter written in c, just to see where i can get to :)
- Host: GitHub
- URL: https://github.com/oguzalb/Fayton
- Owner: oguzalb
- Created: 2015-08-11T19:55:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-15T10:43:44.000Z (about 9 years ago)
- Last Synced: 2024-07-20T01:14:19.544Z (4 months ago)
- Language: C
- Size: 568 KB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - Fayton
README
# Fayton
A minimalistic python interpreter written in c, just to see where i can get to :)Currently in a very initial version with mem leaks all over the place since i don't care for now
Things that -barely- work can be seen inside test_interpret.c and under tests/ directory
Needs glib-dev and readline library installed
make all and everything is compiled
Things can be tried using repl.out
Classes and inheritance: implemented
Exceptions: implemented
Garbage collection: not implemented
list: implemented mostly
dictionary: half implemented
int: infinite numbers not implemented, rest of the functionality is mostly implemented
str: format does not accept tuple since tuples are not implemented, rest is working
magic functions: infrastructure and most important ones implemented
functions: working
closures: working
kwargs: working
generators: working but not stable, exceptions will be covered
for loop: working
while loop: working
arithmetic and tests: mostly working, 1 < a < 3 style does not work yet
list comprehensions: not implemented
metaclasses: not implemented
threads: added poc, but does not have concurrency checks, this is the last work that will be done