示例#1
0
 /// <summary>
 /// Parser to turn lg content into a <see cref="LanguageGeneration.Templates"/>.
 /// </summary>
 /// <param name="filePath">Absolute path of a LG file.</param>
 /// <param name="importResolver">resolver to resolve LG import id to template text.</param>
 /// <param name="expressionParser">expressionEngine Expression engine for evaluating expressions.</param>
 /// <returns>new <see cref="LanguageGeneration.Templates"/> entity.</returns>
 public static Templates ParseFile(
     string filePath,
     ImportResolverDelegate importResolver = null,
     ExpressionParser expressionParser     = null)
 {
     return(TemplatesParser.ParseFile(filePath, importResolver, expressionParser).InjectToExpressionFunction());
 }
 /// <summary>
 /// Parser to turn lg content into a <see cref="LanguageGeneration.Templates"/>.
 /// </summary>
 /// <param name="filePath">Absolute path of a LG file.</param>
 /// <param name="importResolver">resolver to resolve LG import id to template text.</param>
 /// <param name="expressionParser">expressionEngine Expression engine for evaluating expressions.</param>
 /// <returns>new <see cref="LanguageGeneration.Templates"/> entity.</returns>
 public static Templates ParseFile(
     string filePath,
     ImportResolverDelegate importResolver = null,
     ExpressionParser expressionParser     = null) => TemplatesParser.ParseFile(filePath, importResolver, expressionParser);