Node is getting splitted in case of if statement

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by Ranajit Koley - Software Engineer, HCL Technologies Limited
Version: 12.1.0302
Avatar

If in Syntax Editor we write an if statement like the following:

if(true AND false)

{

}

Then, the ICompilationUnits are generated by the Function FindAncestor and the node inside the if statement's expression splitted and two errors are shown

1. ) expected

2. ; expected

But We want to generate a custom error message in case AND/OR is written in Syntax Editor instead of the above mentioned messages. But We are not getting the "true AND false" as a Node.

How could we get the Node without getting splitted so that we can generate our error message ?

Comments (1)

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

Hi Ranajit,

Can you clarify, are you trying to do this in our .NET Language Add-on's C# language parser?  If so, that is hard-coded to handle C# syntax.  You won't really be able to properly alter things like this unless you have the source of the add-on and change the grammar to fit your needs.  But also note that changing the node structure in source may or may not also end up breaking some of our automated IntelliPrompt features so you have to be careful if you do so.


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.