https://github.com/hellerve/a_bad_idea
Code for my Lightning Talk at EuroPython2016 (the one I didn’t give)
https://github.com/hellerve/a_bad_idea
Last synced: 12 months ago
JSON representation
Code for my Lightning Talk at EuroPython2016 (the one I didn’t give)
- Host: GitHub
- URL: https://github.com/hellerve/a_bad_idea
- Owner: hellerve
- Created: 2016-07-18T14:17:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T16:53:14.000Z (about 7 years ago)
- Last Synced: 2025-02-12T05:12:22.520Z (about 1 year ago)
- Language: Python
- Homepage: https://blog.veitheller.de/A_Bad_Idea.html
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# a\_bad\_idea
\#langs for Python. Check out [my blog post](https://blog.veitheller.de/A_Bad_Idea.html)!
## Installation
No.
## Usage
You want to add a custom parser to Python?
Sure you can.
```python
from a_bad_idea import add_implementation
add_implementation("mylanguage", my_language_fun)
```
The loaded module will then have a `value` property that
you can read out. Because that is not hacky at all.
For an example, look at [the JSON example](https://github.com/hellerve/a_bad_idea/blob/master/examples/json_lang.py).
Have fun!