Fix issue with parsing debug specifications at module level
Update grammar