Check for duplicate declarations
Allow empty commands (;)