The direct input to the parser is a set of words ordered linearly (one after the other); the parser’s job is to figure out how these words are related hierarchically
Lexical material do not provide the parser with semantic information only. Lexical material can contain morphosyntactic information, too. Consider this ambiguous sentence