Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dynajoe/elm-module-parser
https://github.com/dynajoe/elm-module-parser
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dynajoe/elm-module-parser
- Owner: dynajoe
- Created: 2018-10-25T17:04:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-03T17:15:30.000Z (about 6 years ago)
- Last Synced: 2024-08-09T09:29:06.203Z (5 months ago)
- Language: TypeScript
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Module Parser for the Elm Programming Language
Built using PEG.js to parse module declaration, import statements, type names, and function names. Parsing is done synchronously and errors are thrown indicating parse errors.
Installation:
```
npm install elm-module-parser
```Usage (TypeScript):
```typescript
import { ModuleParser, Module } from 'elm-module-parser'const result: Module = ModuleParser.parse('module Foo exposing (Bar)')
...
```
# Goals* Work with incomplete or invalid Elm programs
* Provide a simple interface for parsing Elm programs# Contributing
Please open an issue to begin discussion.
# Future
Parse more of the Elm programming language.