0.0.4 • Published 7 years ago

sumer v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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.

0.0.4

7 years ago

0.0.2

7 years ago

0.0.1

8 years ago

0.0.0

8 years ago