Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Norvig's originals and updates

This directory contains:

  • original/: Norvig's lis.py, lispy.py, and the lispytest.py custom test script for testing both;
  • py3.10/: lis.py with type hints, pattern matching, and minor edits—requires Python 3.10.

The py3.10/ directory also has lis_test.py to run with pytest, including the lis_tests suite from original/lispytest.py, and additional separate tests for each expression and special form handled by evaluate.

Provenance, Copyright and License

lis.py is published in the norvig/pytudes repository on Github. The copyright holder is Peter Norvig and the code is licensed under the MIT license.

Luciano Ramalho
June 29, 2021