refactor and bugfix

based on golang scanner
fix autoconf configurations
rename YPLexer to YScanner