Posted 15 years ago
by Matt Kerchmar
Hello,
The getting started samples for Syntax Editor for WPF use a SimpleLanguage example. One of the files pertaining to this sample language is the SimpleTokenID.cs file. This file seems to be auto generated by the Language Designer (according to some comments within the file). But I'm not seeing any functionality within the Language Designer that exports this type of file. It contains a class which has all the token IDs from each token. This is used in the SimpleParser class to determine the type of token it is working with.
Could anyone direct me to where I can generate this code?
Also, I'm a little confused by the current state of setting up parsing. Is there an abstract syntax tree system already implemented, or is that an upcoming feature? Assuming I have fairly simple/standard requirements, what is the ideal parsing setup? Should I be looking into using ANTLR or MGrammar, or are there provisions already included in the product?
Thanks!
-Matt Kerchmar
[Modified at 01/06/2010 02:47 PM]
The getting started samples for Syntax Editor for WPF use a SimpleLanguage example. One of the files pertaining to this sample language is the SimpleTokenID.cs file. This file seems to be auto generated by the Language Designer (according to some comments within the file). But I'm not seeing any functionality within the Language Designer that exports this type of file. It contains a class which has all the token IDs from each token. This is used in the SimpleParser class to determine the type of token it is working with.
Could anyone direct me to where I can generate this code?
Also, I'm a little confused by the current state of setting up parsing. Is there an abstract syntax tree system already implemented, or is that an upcoming feature? Assuming I have fairly simple/standard requirements, what is the ideal parsing setup? Should I be looking into using ANTLR or MGrammar, or are there provisions already included in the product?
Thanks!
-Matt Kerchmar
[Modified at 01/06/2010 02:47 PM]