Skip to content
Elm syntax in Elm
Elm JavaScript
Branch: master
Clone or download
Pull request Compare This branch is even with stil4m:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
src
tests
.gitignore
.nvmrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
appveyor.yml
elm-analyse.json
elm.json
package-lock.json
package-tests.js
package.json
pre.txt
todo.txt

README.md

elm-syntax

Elm Syntax in Elm: for parsing and writing Elm in Elm.

Used in:

Example

import Elm.Parser


src = """module Foo exposing(foo)

foo = 1
"""

parse : String -> String
parse input =
  case Elm.Parser.parse input of
    Err e ->
      "Failed: " ++ Debug.toString e
    Ok v ->
      "Success: " ++ Debug.toString v

main =
  parse src
You can’t perform that action at this time.