DebugFormatter to assist lexer development

Issue #333 resolved
created an issue

I am developing some lexers, and I wrote a custom formatter to help in the development process. Basically, these formatters print out:

Token.Keyword                 import
Token.Name.Namespace          java.lang.*
Token.Operator                ;

so you can see what is matching what. I have added them to One prints ansi-formatted colour and the other prints plain text. Basically, I copied and modified the Terminal formatter as best I could with my very limited python.

Comments (6)

  1. thatch

    Yes, they look like they serve the same purpose. The highlighting of error tokens seems useful, we should probably integrate that with the existing !RawTokenFormatter. I'll try tackling this.

  2. Log in to comment