Beispiel #1
0
        public override Node ExitTableRow(Production node)
        {
            // Ignore whitespace and grab columms
            var columns = GetChildValues(node).Cast<object>().Where(o => o is Cell).Cast<Cell>().ToList();

            var row = new Row(columns);
            node.AddValue(row);
            return node;
        }
 public JaggedTableException(Row row, int expectedColumns)
     : base(string.Format("Table row on line: {0} should have {1} columns, not {2}", row.LineNumber, expectedColumns, row.Cells.Count))
 {
 }