Compliers project 3: Scanner