コード例 #1
0
ファイル: Parser.cs プロジェクト: Eskat0n/Pate
        public IEnumerable<Node> Parse(IEnumerable<string> templateLines, IVocabulary vocabulary)
        {
            var nodeList = new List<Node>();

            var trimmedLines = templateLines
                .Select(x => x.TrimEnd('\r', '\t', ' '));

            foreach (var line in trimmedLines)
            {
                vocabulary.Contains(line);
            }

            return nodeList.AsReadOnly();
        }