Grammar Designer generated files problem

SyntaxEditor for Windows Forms Forum

Posted 18 years ago by Michal Sieluzycki
Version: 4.0.0234
Avatar
I have loaded ActiproSoftware.Simple.Gramar.xml into the Grammar Designer, run parser and saved grammar output into multiple files.
The generated files were different that the SimpleAddon files supplied with the Test Application. Why?

Best Regards,

Michal Sieluzycki

Comments (3)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Michal,

The Grammar Designer's AST generation is currently just to make a base set of classes to start with. The Simple AST classes in the project have been customized from that generated code.

One request from another user was to enhance the Grammar Designer so that custom code may be added to the grammar for each AST node specification, thereby keeping the generated code the same as the code in the project. That item is on the TODO list but we have not yet gotten to it.


Actipro Software Support

Posted 18 years ago by Michal Sieluzycki
Avatar
Hi,

Thank you, for the prompt answer. I understand, that the Grammar Designer is supposed to generate only the skeleton of the code, however it would be nice, if the generated files could be compiled.

Best Regards,
Michal Sieluzycki
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Good news... we've completed this for the next maintenance release. Running the Grammar Designer on the Simple language will make fully-functional AST nodes with embedded custom code that is specified in the grammar file. It's pretty neat!


Actipro Software Support

The latest build of this product (v24.1.1) 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.