
Is this possible? We have multiple projects that require use of the Lexer output but only one that requires the rest (the one contains the syntax editor control). We want to use the Lexer as opposed to re-creating the language in another Lexer/Parser and we want to re-use this Lexer across the various things that need to Tokenize the text.
How would I go about wrapping the Dynamic Lexer to provide a function
public void Parse(string plainText); and pull the results using GetNextToken() or a public property list of all tokens in order?
I have to believe I can use this separately of the Syntax Editor. I know I'll probably need to bring the ClassificationTypeProvider class along... Any help would be appreciated. I need to know if we'll have to roll our own Lexer or not.
Thanks,
Cody
How would I go about wrapping the Dynamic Lexer to provide a function
public void Parse(string plainText); and pull the results using GetNextToken() or a public property list of all tokens in order?
I have to believe I can use this separately of the Syntax Editor. I know I'll probably need to bring the ClassificationTypeProvider class along... Any help would be appreciated. I need to know if we'll have to roll our own Lexer or not.
Thanks,
Cody