Skip to content
master
Switch branches/tags
hpython/example/
hpython/example/
This branch is 4 commits ahead, 3 commits behind develop.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Examples

Programs.hs

Various Python programs written using the raw data structures and the higher-level DSL

Indentation.hs

Functions that refactor program indentation

FixMutableDefaultArguments.hs

A function that refactors occurrences of mutable default arguments

Validation.hs

An example of validating some Python programs

OptimizeTailRecursion.hs

A function that refactors tail-recursive functions into loops

Recase.hs

Converts a file from snake-case to camel-case

Main.hs

Runs all the functions we defined and prints the results

To run Main.hs, call cabal new-run example from the base directory.