stil4m/elm-syntax/6.0.1

NOTE: the latest version is 7.3.9

Elm.Parser

Elm Parser

parse : String -> Result (List DeadEnd) RawFile

Parse some text as if it is an Elm source file. When parsing fails, the result will contain a list of errors indicating what went wrong (and/or where). If it succeeds, you will get a RawFile. This RawFile will require some post-processing to properly setup documentation and ensure that operator precedence is applied correctly (based on dependencies). To process a RawFile, check out the Processing module.