diff --git a/Irony/Ast/AstBuilder.cs b/Irony/Ast/AstBuilder.cs index 377677b..a5ea818 100644 --- a/Irony/Ast/AstBuilder.cs +++ b/Irony/Ast/AstBuilder.cs @@ -61,10 +61,11 @@ public virtual void VerifyLanguageData() { config.DefaultNodeCreator = CompileDefaultNodeCreator(config.NodeType); } if (missingList.Count > 0) + // AST node type is not specified for term {0}. Either assign Term.AstConfig.NodeType, or specify default type(s) in AstBuilder. Context.AddMessage(ErrorLevel.Error, SourceLocation.Empty, Resources.ErrNodeTypeNotSetOn, missingList.ToString()); Context.Language.AstDataVerified = true; } - // AST node type is not specified for term {0}. Either assign Term.AstConfig.NodeType, or specify default type(s) in AstBuilder. + protected virtual Type GetDefaultNodeType(BnfTerm term) { if (term is NumberLiteral || term is StringLiteral) return Context.DefaultLiteralNodeType;