Parsing expression grammars, constructing a linear