类Python语言解释器

Hython

A little language with Python-like grammer.

The design borrows quite a lot from language-python and berp. Forgive me as this is the first time I employ alex and happy, and the principles of compiler design is still intelligible to me.

Hackage Dependencies

ghc, alex, happy, cmdargs, data-lens, data-lens-template

Supporting Features

Data types

These are a list of available data types:

  1. None
  2. Integer
  3. Bool
  4. Function

Flow control statements

  1. if .. elif .. else
  2. while .. else
  3. break continue

Others

  1. one-line lambda
  2. def

Check out tests/ to find out all features.