ex_yarn v0.3.1 ExYarn.Parser View Source
Main module for parsing lockfiles (intended for internal use only)
This module receives the lockfile as input, passes it over to ExYarn.Token
for tokenization and parses the resulting token list to generate the map
reprsenting the lockfile's contents.
Link to this section Summary
Functions
The module's entrypoint
Link to this section Types
Specs
t() :: %ExYarn.Parser{ comments: [String.t()], indent: integer(), result: map(), tokens: [ExYarn.Token.t()] }
This type is meant for internal use only and reprsents the parser's state
Link to this section Functions
Specs
parse(String.t()) :: {:ok, map()} | {:error, ExYarn.ParseError.t()}
The module's entrypoint
Receives the lockfile's content as a String
and returns the parsed map
representing the lockfile as a Map
.