Build a basic syntax tree during parsing.