public static Item Parse(Lexer l) { var c = l.Peek(); if (c == '<') { return(Garbage.Parse(l)); } else if (c == '{') { return(Group.Parse(l)); } throw new Exception("Could not parse item"); }
public override void Visit(Garbage garbage) { CharactersCount += garbage.Content.Length; }
public override void Visit(Garbage garbage) { // ignore }