more work on lib. now has state-stack handling. still just produces a token tree, not yet transpiling