Skip to content

oils-for-unix/babytypechecker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Baby Type Checker

A small type checker I made for Python as part of my blog post, Baby's first type checker.

babytypechecker

It is ~350 lines of Python that type checks a single Python code file. It supports primitive types, containers, functions, assignments, binary operators, indexing, type unions, and a few scenarios of type narrowing.

To try it, run python3 babytypechecker.py examples/simple.py. It will report any type errors. For more diagnostics, use --trace to see all individual type checks (even the ones that pass).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%