Here is my code for a simple semantic analyser that only checks for re-declarations and multiple declarations. This is the lex file
{ #include "y