Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22462

Stéphane Wirtel: Frenchify Python ;-)

$
0
0

PyConFR 2016

During the PyConFR in Rennes (France), I have started a funny project, try to have a Python in French. Yes, you have well read, in French. And why ? Because we are at PyConFR in France ;-)

So, in this case, I have read the Makefile of the project and I have found a reference to the Grammar/Grammar file.

Grammar

Grammar/Grammar

Parser/pgen

Demo

  1. Modify Grammar/Grammar
  2. Compile Parser/pgen with Makefile
  3. Execute Parser/pgen
  4. Compile Python with the new grammar
> make Parser/pgen
> ./Parser/pgen Grammar/Grammar Include/graminit.h Parser/graminit.c
> make
> ./python /tmp/demo.py

Viewing all articles
Browse latest Browse all 22462

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>