Custom Lexer?

Discussion Forums discussion Custom Lexer?

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
February 21, 2011 at 1:37 pm #5208



I wrote my own scheme for the Scala language, but am now stuck when it comes to the lexer.

I assume I’ll have to make my own as well? I’m currently using the one for Python, which works, but… meh.

I searched around here and google but didn’t really get anywhere, can someone point me to some info about writing a custom lexer?


March 3, 2011 at 11:20 pm #17637

Key Master

I’m not that familiar with Scala, but it looks like someone’s already created a Scintilla lexer for scala here:

This may work better than adapting Python or another. You can file an issue here to see if this support can be integrated in the future:

April 19, 2012 at 11:50 pm #17638


Hi, Simon.

How could I add a new lexer to PN (I use 2.3)? Can I just compile some simple program and somehow reference it in schemedef/scheme? Or should I just compile and rename it to [my language].lexer? Or would I have to recompile and overwrite SciLexer.dll? Any docs / pointers on that?

BTW. Does lexer tag behavior differ in .scheme and .schemedef? Does schemedef by default use customscheme.lexer or something like that? When is customscheme.lexer used anyway?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.