Posted 19 years ago
by Sergey M
I'm evaluating your SyntaxEditor and trying to get a handle on it. I'd like to let the user provide me with a simple one-line expression, such as "A+B+123". I'd like to assign that expression to your SyntaxEditor.Document and process all of the tokens exposed. For this simple test I plan on using C# but it could be any C-like language.
As part of tokens processing, I'm only interested in operator tokens and their types, if parser is capable of resolving it that way. I then need to be able to plug some values for each one of those operator tokens and retrieve an "expanded" expression (with values plugged in already). I'm having difficulties trying to figure out how to do this.
I'd also appreciate your comments regarding the task in hand, i.e. is it doable or not and whether I'm on a right track. Any code snippets are or just a gentle push in the right direction would be very much appreciated. Thanks.
As part of tokens processing, I'm only interested in operator tokens and their types, if parser is capable of resolving it that way. I then need to be able to plug some values for each one of those operator tokens and retrieve an "expanded" expression (with values plugged in already). I'm having difficulties trying to figure out how to do this.
I'd also appreciate your comments regarding the task in hand, i.e. is it doable or not and whether I'm on a right track. Any code snippets are or just a gentle push in the right direction would be very much appreciated. Thanks.