func parses both in prefix (expr) and stmt forms