wavelength 1.0.0
Loading...
Searching...
No Matches
Tools::Ark::DataText Class Reference

Reader of the decompiled text form of a compiled DataArray file. More...

#include <datatext.h>

Static Public Member Functions

static std::expected< DataFile, Error > parse (std::string_view text)
 Parse the text into a compiled file without a seed.

Detailed Description

Reader of the decompiled text form of a compiled DataArray file.

The text opens with the source file names in braces. Each array is in parentheses, and an optional [line file] pair after the opening parenthesis gives its source line and file index; a pair before the first array gives those of the root. Elements are integers, floats, symbols in single quotes, strings in double quotes, and bare words, which are symbols. A ; starts a comment that ends with the line.

Member Function Documentation

◆ parse()

std::expected< DataFile, Error > Tools::Ark::DataText::parse ( std::string_view text)
static

Parse the text into a compiled file without a seed.

Parameters
textThe text, one byte per character.
Returns
The file, or an ErrorCode::InvalidInput error naming the offset where parsing failed.

The documentation for this class was generated from the following file: