Exemplo n.º 1
0
        static List<IConceptInfo> DslModelFromScript(string dsl, IConceptInfo[] conceptInfoPluginsForGenericParser)
        {
            var nullDslParser = new DslParser(new DslSourceHelper(dsl), conceptInfoPluginsForGenericParser, new ConsoleLogProvider());
            Console.WriteLine("Parsed concepts:");
            Console.WriteLine(string.Join(Environment.NewLine, nullDslParser.ParsedConcepts.Select(ci => " - " + ci.GetShortDescription())));

            var dslModel = new DslModel(nullDslParser, new ConsoleLogProvider());
            return dslModel.Concepts.ToList();
        }
Exemplo n.º 2
0
 static List<IConceptInfo> DslModelFromConcepts(IEnumerable<IConceptInfo> rawConcepts)
 {
     var dslModel = new DslModel(new StubDslParser(rawConcepts), new ConsoleLogProvider());
     return dslModel.Concepts.ToList();
 }