Hi All,

 

I have a Alex lexer with wrapper "monadUserState-bytestring". The AlexUserState = AlexUserState {sheetNames:: {String], currSheet:: Int}.  The lexer should check whether a found sheetname is in sheetNames. The sheetNames from AlexUserState come from outside. I want to invoke the lexer many times with different AlexUserStates.  Therefore the alexInitUserState function is not what I want. I’de like to initialize the AlexUserState while starting the lexer, i.e. as a parameter to runAlex. Can that be done?

 

Kees


Virusvrij. www.avast.com