method Parser.prototype.parse
Parser.prototype.parse(specificationString: string): Specification

Parses the given specification string and returns a Specification object.

Parameters

specificationString: string
  • The string containing the specification to be parsed.

Return Type

The parsed Specification object.

Throws

InternalParserError

If an unexpected error occurs during parsing.

LexicalParserError

If a lexical error occurs during parsing, providing the error message and location.

Usage

import { Parser } from ".";