berp-0.0.2: An implementation of Python 3.

Portabilityghc
Stabilityexperimental
Maintainerflorbitous@gmail.com

Berp.Base.Mangle

Description

Name mangling.

We need to mangle Python's identifier names when we compiled them to Haskell names because: 1) Python allows some identifiers which are illegal in Haskell, such as leading upper case letters. 2) We introduce our own temporary variables into a compiled program. Name mangling helps to avoid accidental name clash. 3) We import many Haskell primitives into the compiled program. Name mangling helps to avoid accidental name clash.

Documentation