Syntax: mark as obsolete?

SyntaxEditor for Windows Forms Forum

Posted 9 years ago by Ralph Scheller - GTI-control
Version: 14.1.0323
Avatar

Hello,

we are using Actipro-SyntaxEditor Version 4.0.290.0 in our Software to edit our own pascal-like programming language.

Now, with a brand new version of our software, we have some changes in our programming language.

Is it possible to mark old keywords, which are not valid any more, as obsolete?

 

 

Regards,

R. Scheller

GTI-Control

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ralph,

Yes, there are several things you could do.  You could have a special highlighting style in your lexer that would be different for these keywords than the others, making it clear to the user that something changed.  To do that, you'd tokenize these keywords differently than the standard ones.

Or alternatively, if you use a semantic parser, you could have it scan the document for them and return an ICompilationUnit that has HasErrors=true and SyntaxErrors filled in.  See the Language Definition Guide / Other Features / Error Wave Lines documentation topic for some info on that.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.