Add the scanner flex code