lib/utils/pyexec: Refactor to put lexer constructors all in one place.
lib/utils/pyexec: Refactor to put lexer constructors all in one place.

The lexer can now raise an exception on construction so it must go within
an nlr handler block.

alex-robbins/micropython,adafruit/micropython,adafruit/circuitpython,deshipu/micropython,kerneltask/micropython,cwyark/micropython,tobbad/micropython,micropython/micropython-esp32,TDAbboud/micropython,SHA2017-badge/micropython-esp32,lowRISC/micropython,HenrikSolver/micropython,adafruit/micropython,Timmenem/micropython,selste/micropython,bvernoux/micropython,blazewicz/micropython,micropython/micropython-esp32,adafruit/circuitpython,adafruit/circuitpython,AriZuu/micropython,puuu/micropython,torwag/micropython,HenrikSolver/micropython,pfalcon/micropython,trezor/micropython,bvernoux/micropython,selste/micropython,blazewicz/micropython,ryannathans/micropython,deshipu/micropython,PappaPeppar/micropython,henriknelson/micropython,henriknelson/micropython,pfalcon/micropython,tralamazza/micropython,dmazzella/micropython,AriZuu/micropython,Peetz0r/micropython-esp32,Peetz0r/micropython-esp32,swegener/micropython,trezor/micropython,bvernoux/micropython,swegener/micropython,deshipu/micropython,Peetz0r/micropython-esp32,TDAbboud/micropython,pramasoul/micropython,PappaPeppar/micropython,puuu/micropython,HenrikSolver/micropython,AriZuu/micropython,blazewicz/micropython,SHA2017-badge/micropython-esp32,pozetroninc/micropython,kerneltask/micropython,tobbad/micropython,cwyark/micropython,dmazzella/micropython,oopy/micropython,tobbad/micropython,cwyark/micropython,SHA2017-badge/micropython-esp32,TDAbboud/micropython,AriZuu/micropython,henriknelson/micropython,pramasoul/micropython,MrSurly/micropython-esp32,SHA2017-badge/micropython-esp32,torwag/micropython,swegener/micropython,TDAbboud/micropython,chrisdearman/micropython,alex-robbins/micropython,MrSurly/micropython,oopy/micropython,lowRISC/micropython,torwag/micropython,hiway/micropython,tralamazza/micropython,tralamazza/micropython,toolmacher/micropython,toolmacher/micropython,cwyark/micropython,torwag/micropython,pramasoul/micropython,oopy/micropython,Timmenem/micropython,AriZuu/micropython,adafruit/circuitpython,infinnovation/micropython,cwyark/micropython,lowRISC/micropython,lowRISC/micropython,selste/micropython,adafruit/circuitpython,puuu/micropython,chrisdearman/micropython,puuu/micropython,deshipu/micropython,trezor/micropython,Timmenem/micropython,adafruit/micropython,puuu/micropython,oopy/micropython,MrSurly/micropython,MrSurly/micropython,PappaPeppar/micropython,ryannathans/micropython,torwag/micropython,pramasoul/micropython,toolmacher/micropython,kerneltask/micropython,hiway/micropython,selste/micropython,pozetroninc/micropython,chrisdearman/micropython,bvernoux/micropython,swegener/micropython,Peetz0r/micropython-esp32,alex-robbins/micropython,chrisdearman/micropython,TDAbboud/micropython,MrSurly/micropython-esp32,ryannathans/micropython,HenrikSolver/micropython,alex-robbins/micropython,adafruit/micropython,tralamazza/micropython,ryannathans/micropython,kerneltask/micropython,micropython/micropython-esp32,ryannathans/micropython,hiway/micropython,MrSurly/micropython-esp32,dmazzella/micropython,pozetroninc/micropython,swegener/micropython,SHA2017-badge/micropython-esp32,tobbad/micropython,chrisdearman/micropython,selste/micropython,pfalcon/micropython,PappaPeppar/micropython,alex-robbins/micropython,MrSurly/micropython-esp32,blazewicz/micropython,Timmenem/micropython,dmazzella/micropython,henriknelson/micropython,bvernoux/micropython,PappaPeppar/micropython,adafruit/circuitpython,kerneltask/micropython,hiway/micropython,MrSurly/micropython,pfalcon/micropython,adafruit/micropython,pozetroninc/micropython,HenrikSolver/micropython,oopy/micropython,trezor/micropython,MrSurly/micropython,deshipu/micropython,tobbad/micropython,toolmacher/micropython,pfalcon/micropython,infinnovation/micropython,micropython/micropython-esp32,lowRISC/micropython,micropython/micropython-esp32,Timmenem/micropython,blazewicz/micropython,hiway/micropython,trezor/micropython,infinnovation/micropython,infinnovation/micropython,toolmacher/micropython,infinnovation/micropython,pramasoul/micropython,henriknelson/micropython,pozetroninc/micropython,Peetz0r/micropython-esp32,MrSurly/micropython-esp32