Create syntax tree and lookup Table.