PEG parser for writing reader macros