[Python-Dev] Translate Python language

Brett Cannon brett at python.org
Wed Nov 11 14:31:52 EST 2015


On Wed, 11 Nov 2015, 10:55 Christophe Bal <projetmbc at gmail.com> wrote:

Hello.

I'm a french teacher and I would like to use Python with young child but
I've a big problem. All the keyword are in english. So I would like to know
if there is a way to hack the AST tools such as to use french keywords and
then translate a list of french keywords to their english regular version.

Where should I start ? My idea is not to build a new language but simply
translate words using an hacked version of the AST tools.

You actually need a new grammar for the parser as the AST comes from that.
Then you may be able to build the AST.

-brett


Hoping to be clear and I do not pollute the message in this list.

*Christophe BAL*

*Enseignant** de **mathématiques* *en** Lycée **et **développeur** Python
amateur*

*---*

*French math teacher in a "Lycée" **and **Python **amateur developer*

_______________________________________________
Python-Dev mailing list
Python-Dev at python.org
https <https://mail.python.org/mailman/listinfo/python-dev>://
<https://mail.python.org/mailman/listinfo/python-dev>mail.python.org
<https://mail.python.org/mailman/listinfo/python-dev>/mailman/
<https://mail.python.org/mailman/listinfo/python-dev>listinfo
<https://mail.python.org/mailman/listinfo/python-dev>/
<https://mail.python.org/mailman/listinfo/python-dev>python-dev
<https://mail.python.org/mailman/listinfo/python-dev>
Unsubscribe: https
<https://mail.python.org/mailman/options/python-dev/brett%40python.org>://
<https://mail.python.org/mailman/options/python-dev/brett%40python.org>
mail.python.org
<https://mail.python.org/mailman/options/python-dev/brett%40python.org>
/mailman/options/
<https://mail.python.org/mailman/options/python-dev/brett%40python.org>
python-dev
<https://mail.python.org/mailman/options/python-dev/brett%40python.org>/
<https://mail.python.org/mailman/options/python-dev/brett%40python.org>brett
<https://mail.python.org/mailman/options/python-dev/brett%40python.org>
%40python.org
<https://mail.python.org/mailman/options/python-dev/brett%40python.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20151111/42b0e5aa/attachment.html>


More information about the Python-Dev mailing list