Closed xsawyerx closed 4 years ago
We should look at how C-style comments are done in Marpa.
Following thoughts on #21, I decided that while perl
, the interpreter, understands inline POD syntax, it's not part of the language specification. It has its own specification as its own documentation language.
This means that we could approach this in two ways:
^=
until ^=cut$
and give that to the user to deal with
@gonzus Your thoughts on this will be appreciated.
My comments in https://github.com/xsawyerx/reimagined-guacamole/issues/21#issuecomment-643982243 apply here, probably even more so. If you want the parser to also parse POD, then this is exactly the problem I mentioned before: how do you parse two different syntaxes with the same parser?
Agreed.
Inline POD presents a unique problem:
We need to match the beginning of line specifically, then we need to gobble everything, including all spacing until we match the
=cut
.Marpa's BFN regex supports
^
so we might be able to get away with it with^[#]
and^=cut$
but I'm not sure if that's for beginning/end of lines.--
perlpodscpec