pub fn parse_safas<Chars: Iterator<Item=char>>(code: &mut TokenReadBuffer<Chars>, location: FileLocation) -> Result<CellRef, ParseError> {
    // Initial location
    let mut location    = location;

    // Results, stored as a 
    let mut results     = vec![];

    loop {
        let (next_cell, next_location) = parse_cell(code, location)?;
        location = next_location;

        if let Some(next_cell) = next_cell {
            // Add to the result list
            results.push(next_cell);
        } else {
            // End of file
            break;
        }

    }

    Ok(SafasCell::list_with_cells(results))
}
///
/// Parses a file in SAFAS format and returns the resulting cell
///
Parses a file in SAFAS format and returns the resulting cell
Parses a file in SAFAS format and returns the resulting cell
pub fn parse_safas<Chars: Iterator<Item=char>>(code: &mut TokenReadBuffer<Chars>, location: FileLocation) -> Result<CellRef, ParseError> {
    // Initial location
    let mut location    = location;
    // Results, stored as a 
    let mut results     = vec![];
    loop {
        let (next_cell, next_location) = parse_cell(code, location)?;
        location = next_location;
        if let Some(next_cell) = next_cell {
            // Add to the result list
            results.push(next_cell);
        } else {
            // End of file
            break;
        }
    }
    Ok(SafasCell::list_with_cells(results))
}
pub fn parse_safas < Chars : Iterator < Item = char > > ( code : & mut TokenReadBuffer < Chars > , location : FileLocation ) -> Result < CellRef , ParseError > { // Initial location let mut location = location ; // Results, stored as a  let mut results = vec ! [ ] ; loop { let ( next_cell , next_location ) = parse_cell ( code , location ) ? ; location = next_location ; if let Some ( next_cell ) = next_cell { // Add to the result list results . push ( next_cell ) ; } else { // End of file break ; } } Ok ( SafasCell :: list_with_cells ( results ) ) }
Parses a file in SAFAS format and returns the resulting cell
Parses a file in SAFAS format and returns the resulting cell
code
&mut TokenReadBuffer<Chars>
location
FileLocation
code
&mut TokenReadBuffer<Chars>
location
FileLocation