pax_global_header 0000666 0000000 0000000 00000000064 13113476405 0014516 g ustar 00root root 0000000 0000000 52 comment=ba60153ecc8ae6ef56d306a6cdb6c906602e6aef
neotoma-1.7.4+dfsg/ 0000775 0000000 0000000 00000000000 13113476405 0014110 5 ustar 00root root 0000000 0000000 neotoma-1.7.4+dfsg/.gitignore 0000664 0000000 0000000 00000000156 13113476405 0016102 0 ustar 00root root 0000000 0000000 ebin/*.beam
ebin/neotoma.app
extra/*.beam
*#*
.eunit
*#*
.DS_Store
._*
neotoma.plt
/_build/
/doc/
/rebar.lock
neotoma-1.7.4+dfsg/.travis.yml 0000664 0000000 0000000 00000000227 13113476405 0016222 0 ustar 00root root 0000000 0000000 language: erlang
notifications:
disabled: true
otp_release:
- 17.0
- 17.3
- 17.4
- R16B02
- R16B01
- R16B
- R15B02
- R15B01
- R15B
neotoma-1.7.4+dfsg/LICENSE 0000664 0000000 0000000 00000002036 13113476405 0015116 0 ustar 00root root 0000000 0000000 Copyright (c) 2009 Sean Cribbs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. neotoma-1.7.4+dfsg/Makefile 0000664 0000000 0000000 00000001010 13113476405 0015540 0 ustar 00root root 0000000 0000000 .PHONY: test compile clean dialyzer bootstrap escript
all: compile
compile:
@./rebar compile
test:
@./rebar eunit
clean:
@./rebar clean
neotoma.plt:
@dialyzer --build_plt --apps erts kernel stdlib compiler crypto hipe \
syntax_tools --output_plt neotoma.plt
dialyzer: compile neotoma.plt
@dialyzer --plt neotoma.plt ebin
xref: compile
@./rebar xref skip_deps=true
bootstrap: compile
@erl -pz ebin -b start_sasl -noshell -s init stop -s neotoma bootstrap
@./rebar compile
escript:
@./rebar escriptize
neotoma-1.7.4+dfsg/README.textile 0000664 0000000 0000000 00000003763 13113476405 0016456 0 ustar 00root root 0000000 0000000 h1. Neotoma
!https://travis-ci.org/seancribbs/neotoma.svg?branch=master!:https://travis-ci.org/seancribbs/neotoma
h2. About
Neotoma is a packrat parser-generator for Erlang for Parsing Expression Grammars (PEGs).
It consists of a parsing-combinator library with memoization routines, a parser for PEGs,
and a utility to generate parsers from PEGs. It is inspired by treetop, a Ruby library with
similar aims, and parsec, the parser-combinator library for Haskell.
Neotoma is licensed under the MIT License (see LICENSE).
h2. Features
# Simple, declarative parsers generated from even simpler grammars.
# Fully integrated, single-pass lexical and syntactic analysis (a feature of PEGs).
# Packrat-style memoization, boasting parse-time bound linearly to the input size (at the expense of memory usage).
# In-place semantic analysis/transformation, supporting single-pass end-to-end in some applications.
# Erlang code-generation for the lexical/syntactic analysis piece, with the option of semantic analysis/transformation inline, or in a separate module.
# Line/column number tracking for easy resolution of parsing errors.
h2. Installation
# Clone the repository from github:
# Symlink or copy the cloned repository to somewhere in your Erlang code path. $ERLANG_HOME/lib is best.
# Build the source:
$ make
h2. Usage
# After making sure the library is in your code path, fire up an Erlang shell.
# To generate a parser from a PEG, use @neotoma:file/1,2@ (more detailed documentation pending). For PEG examples, see the @extra/@ directory in the repository.