Simplifying parsing of linear expressions