port more -parse impls from tools.analyzer.jvm