allow interpretation of lexer commands

Fixes #385 and fixes #386