The Parser
class is responsible for parsing a given specification string
into a Specification
object. It utilizes a Tokenizer
to tokenize the input
string and applies parsing rules to generate the final specification.
private
tokenizer: Tokenizer
parse(specificationString: string): Specification
Parses the given specification string and returns a Specification object.