peg.js implementation for erlang