XML Language Definition Problem

SyntaxEditor for Windows Forms Forum

Posted 18 years ago by tobias weltner
Avatar
I am trying to design a language definition for XML where corresponding start and close tags are
- creating an automatic outline
- use brace matching

For this, I guess, I would need to use a regular expression that identifies the corresponding closing tag somehow. However, I don't seem to get it how to do that. Is there maybe anyone who can help me out and bring me back on track...?

Comments (3)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Either that or iterate back through the tokens using a TokenStream and look for matches.


Actipro Software Support

Posted 18 years ago by tobias weltner
Avatar
If I do that, I need to do manual outlining, right? I would rather like to do it automatically. For that, I do need regular expressions, right?
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Oh my bad... yes outlining XML will be a little difficult to do since you want to ensure that each tag has the appropriate end tag. I'm not sure our default semantic parser will handle that well. But it's something we hope to support or accomplish with our next major 4.0 parser.


Actipro Software Support

The latest build of this product (v24.1.0) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.