sumer

0.0.4 • Public • Published

Build Status Coverage

sumer

sumer is a bash parser written in JavaScript according to bash-tree.

Install

$ npm install sumer

Usage

import {
  parse,
  tokenize
} from 'sumer'
 
const code = 'export PARSER=sumer'
const AST = parse(code, options)
const tokens = [...tokenize(code, options)]

parse(code, options)

Returns the Abstract Syntax Tree.

tokenize(code, options)

Returns an Iterator<Token>

License

MIT

Credits

Heavily based on acorn.

Readme

Keywords

Package Sidebar

Install

npm i sumer

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • kael