S -> id | V assign E. V -> id. E -> V | num.
To see more grammars and learn more about the format of the grammars: