Proyectos
Ver en GitHub
vorpaljs/bash-parser
Acerca de
Parses bash into an AST
Herramientas de desarrolloCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalbash-parser
Parses bash source code to produce an AST
Installation
npm install --save bash-parser
Usage
const parse = require('bash-parser');
const ast = parse('echo ciao');
ast result is:
{
type: "Script",
commands: [
{
type: "SimpleCommand",
name: {
text: "echo",
type: "Word"
},
suffix: [
{
text: "ciao",
type: "Word"
}
]
}
]
}
Related projects
- cash - This parser should become the parser used by
cash(and also vorpal) - nsh - This parser should become the parser used by
nsh - js-shell-parse - bash-parser was born as a fork of
js-shell-parse, but was rewritten to use ajisongrammar - jison - Bison in JavaScript.
Documentation
Look in documents folder
License
The MIT License (MIT)
Copyright (c) 2016 vorpaljs
Explorar proyectos relacionados
Cargando…