Implement safe defaults when lexer/parser or AST algorithms are unable to perform some work. Probably improve error reporting as well.