Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 981 Bytes
-module(neotoma_peg).
-author("Sean Cribbs <seancribbs@gmail.com>").
% Thanks to Jeffrey A. Meunier for the original parser.erl library from which I
% lifted many of these functions, which in turn was based on the Haskell
% "parsec" library by Erik Meijer. I've renamed the functions to be more
% Erlang-y.
-define(p_eof,true).
-define(p_optional,true).
-define(p_not,true).
-define(p_assert,true).
-define(p_seq,true).
-define(p_choose,true).
-define(p_zero_or_more,true).
-define(p_one_or_more,true).
-define(p_label,true).
-define(p_scan,true).
-define(p_string,true).
-define(p_anything,true).
-define(p_charclass,true).
-define(p_regexp,true).
-define(line,true).
-define(column,true).
-export([p/5]).
-export([setup_memo/0, release_memo/0]).
-export([p_eof/0, p_optional/1, p_not/1, p_assert/1, p_seq/1, p_choose/1, p_zero_or_more/1, p_one_or_more/1, p_label/2, p_string/1, p_anything/0, p_charclass/1, p_regexp/1, line/1, column/1]).
-include("priv/peg_includes.hrl").