deleted dead code (function builtin)
initial refactor away from lists of tokens to streams
refactor type expression parser to remove local mutable state