Posted 18 years ago
by Matthew Smith
-
Developer,
One Plus One Solutions Pty Limited
Version: 4.0.0239
Hi,
Just playing with the Grammer designer. Using the sample ActiproSoftware.Simple.Grammar.xml as the base, I'm wanting to convert this to VB (which you have provided the functionality a little while ago for me).
I guess the one remaining issue for utilising this feature for VB.Net users would be to convert the node declaration stuff you have provided into VB.Net as well. For example:I would imagine this may not be as easy as done, but the main structure conversion currently works well. I guess the other option would be to provide a VB.Net equivelent.
Thanks again for the great control!
Just playing with the Grammer designer. Using the sample ActiproSoftware.Simple.Grammar.xml as the base, I'm wanting to convert this to VB (which you have provided the functionality a little while ago for me).
I guess the one remaining issue for utilising this feature for VB.Net users would be to convert the node declaration stuff you have provided into VB.Net as well. For example:
<AstNode Name="AssignmentStatement" Inherits="Statement" Description="An assignment statement.">
<AstNodeProperty PropertyType="AstNode" Name="VariableName" Type="Identifier" Description="The variable name." />
<AstNodeProperty PropertyType="AstNode" Name="Expression" Type="Expression" Description="The expression." />
<AstNodeDeclarations Type="Constructor"><![CDATA[
/// <summary>
/// Initializes a new instance of the <c>AssignmentStatement</c> class.
/// </summary>
/// <param name="variableName">The variable name.</param>
/// <param name="textRange">The <see cref="TextRange"/> of the AST node.</param>
public AssignmentStatement(Identifier variableName, Expression expression, TextRange textRange) : this(textRange) {
// Initialize parameters
this.VariableName = variableName;
this.Expression = expression;
}
]]></AstNodeDeclarations>
Thanks again for the great control!
Regards, Matt