Changes to the heredoc parser example
Jeffrey Kegler, the author of Marpa, was kind enough to suggest a few changes to the parser from the previous blog post. Two of the three regular expressions were replaced with calls to the Marpa recognizer. The first one was replaced with a call to the pause_span method, which returns the start and length of the lexeme that caused the pause. Passing these two values to the literal method which returns the substring from the input string....