public SclElement(SclElement parent) { Parent = parent; }
public SclVal(Token token, SclElement owner) { Token = token; Owner = owner; Val = Read(token); }
void Element(SclElement p) { var el = new SclElement(p); p.Children.Add(el); Key(); el.Name = t.val; while (la.kind == 3 || la.kind == 4) { Val(); el.AddVal(new SclVal(t, el)); } if (la.kind == 5) { Get(); while (la.kind == 1 || la.kind == 2) { if (la.kind == 1) { Get(); } else { Get(); } } while (la.kind == 3) { Element(el); while (la.kind == 1 || la.kind == 2) { if (la.kind == 1) { Get(); } else { Get(); } } } Expect(6); } if (la.kind == 1) { Get(); } else if (la.kind == 2) { Get(); } else SynErr(8); }