예제 #1
0
파일: Semantics.cs 프로젝트: thufv/Prem
 public static IEnumerable <PartialNode> Child(PartialNode tree) => tree.Yield();
예제 #2
0
파일: Semantics.cs 프로젝트: thufv/Prem
 public static IEnumerable <PartialNode> Children(PartialNode head, IEnumerable <PartialNode> tail) =>
 head.Yield().Concat(tail);
예제 #3
0
파일: Semantics.cs 프로젝트: thufv/Prem
        public static SyntaxNode New(PartialNode tree)
        {
            var context = new SyntaxNodeContext();

            return(tree.Instantiate(context, 0));
        }