archieml-peg

0.1.0 • Public • Published

archieml-peg

Parse ArchieML documents into JavaScript objects. This is an alternative implementation using PEG.js. See the code for parser and compiler. It passes all the tests from the original implementation.

Be sure to also check out the official implementation.

Installation

npm install archieml-peg

Usage

<script src="dist/archieml.js"></script>

<script type="text/javascript">
  var parsed = archieml.load("key: value");
  >> {"key": "value"}
</script>
var archieml = require('archieml-peg');
var parsed = archieml.load("key: value");
>> {"key": "value"}

Build

Instal dependencies npm install

Build gulp build

Development mode - watch for changes and build gulp watch

Testing

Open file test/indext.html in a browser or run npm test.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i archieml-peg

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • dundalek