The scanner has been completely rewritten in order to use Alex generator