Add semantic-mode for parsing