An experiment to derive a stateful lexer from an Xtext grammar