Posted 16 years ago
by Martin de Jong
-
Statistics Netherlands
![Avatar](https://secure.gravatar.com/avatar/b90ac384076b39606a621aa7579cd7f2.jpg?s=64&d=identicon&r=g)
I have a class inherited from SyntaxLanguage. Now i want to associate my lexical parser (its Antlr-made) with it. I thought in the overridden
i should call the lexer? But how to return the tokens. In parsetarget there is a readonly tokencollection. Please give me a hint:)
public override ActiproSoftware.SyntaxEditor.TextRange PerformLexicalParse(ActiproSoftware.SyntaxEditor.Document document, ActiproSoftware.SyntaxEditor.TextRange parseTextRange, ActiproSoftware.SyntaxEditor.ILexicalParseTarget parseTarget)