first draft of generator for sintax analysis