gmlewis/step/parse does not have a README file

    StepParseError

    pub suberror StepParseError {
    StepParseError(StepParseErrorInfo)
    }

    ParseRepositoryFromFileResult

    pub enum ParseRepositoryFromFileResult {
    Ok(
    Repository
    )
    ParseErr(StepParseErrorInfo)
    IoErr(Error)
    }

    ParseRepositoryResult

    pub enum ParseRepositoryResult {
    Ok(
    Repository
    )
    Err(StepParseErrorInfo)
    }

    RawEntityRow

    pub struct RawEntityRow {
    id :
    EntityId

    name : String
    args : String
    line : Int
    col : Int
    }

    StatementSpan

    pub struct StatementSpan {
    stmt : String
    line : Int
    col : Int
    }

    StepParseErrorInfo

    pub struct StepParseErrorInfo {
    message : String
    line : Int?
    col : Int?
    stmt : String?
    }

    \

    fail_parse

    fn[T] fail_parse() -> T raise StepParseError

    fail_parse_at

    fn[T] fail_parse_at(msg : String, line : Int, col : Int, stmt : String) -> T raise StepParseError

    fail_parse_msg

    fn[T] fail_parse_msg(msg : String) -> T raise StepParseError

    fail_parse_stmt

    fn[T] fail_parse_stmt(msg : String, stmt : String) -> T raise StepParseError

    format_step_parse_error

    fn format_step_parse_error(info : StepParseErrorInfo) -> String

    parse_repository_from_file

    async fn parse_repository_from_file(path : StringView) ->
    Repository

    parse_repository_from_file_result

    async fn parse_repository_from_file_result(path : StringView) -> ParseRepositoryFromFileResult

    parse_repository_from_string

    fn parse_repository_from_string(content : String) ->
    Repository
    raise StepParseError

    parse_repository_from_string_lenient

    fn parse_repository_from_string_lenient(content : String) ->
    Repository
    raise StepParseError

    parse_repository_from_string_lenient parses a STEP file and keeps entities whose typed parser rejects the standard spelling as lossless RawEntity values. Tokenizer and grammar errors still fail. This is used by tools/step-stats to inspect third-party golden files without weakening the strict parser used by the library.

    parse_repository_from_string_lenient_result

    fn parse_repository_from_string_lenient_result(content : String) -> ParseRepositoryResult

    parse_repository_from_string_lenient_result is the non-raising lenient wrapper used by tooling.

    parse_repository_from_string_result

    fn parse_repository_from_string_result(content : String) -> ParseRepositoryResult

    split_args

    fn split_args(args : String) -> Array[String]

    split_statements

    fn split_statements(data_section : String) -> Array[String]

    split_statements_with_pos

    fn split_statements_with_pos(data_section : String) -> Array[StatementSpan] raise StepParseError

    tokenize_step_data_section

    fn tokenize_step_data_section(data_section : String) -> Array[RawEntityRow] raise StepParseError

    tokenize_step_data_section_with_base

    fn tokenize_step_data_section_with_base(data_section : String, base_line : Int, base_col : Int) -> Array[RawEntityRow] raise StepParseError