extern crate proc_macro;
extern crate proc_macro2;
extern crate syn;
use parse_macro_input;
extern crate quote;
use ToTokens;
// PEG paper: http://bford.info/pub/lang/peg.pdf
// TODO: rewrite AST enum to facilitate `impl Parse` for each variant
// TODO: support for using external non-terminals (i.e. other nom based parsers)
// TODO: parser templates maybe? (like lalrpop)
// TODO: extra functionality
// - character classes `[a-zA-z]`
// - any character, `.`
// - repetition: exactly n times `{n}`, n or more times `{n,}`, at least n and at most m times `{n, m}`
// - more regex features?
// - handle named captures inside looping constucts
// TODO: option to skip whitespace