Module neotoma

Data Types

option()

option() = {module, atom()} | {output, file:filename()} | {transform_module, atom()} | {neotoma_priv_dir, file:filename()}

Function Index

bootstrap/0Bootstraps the neotoma metagrammar.
file/1Generates a parser from the specified file.
file/2Generates a parser from the specified file with the given options.
main/1Handler function for escript.

Function Details

bootstrap/0

bootstrap() -> ok

Equivalent to file("src/neotoma_parse.peg").

Bootstraps the neotoma metagrammar. Intended only for internal development!

file/1

file(InputGrammar::file:filename()) -> ok | {error, atom()}

Equivalent to file(Filename, []).

Generates a parser from the specified file.

file/2

file(InputGrammar::file:filename(), Options::[option()]) -> ok | {error, atom()}

Generates a parser from the specified file with the given options.

main/1

main(Args::list()) -> ok | no_return()

Handler function for escript.


Generated by EDoc