parrotcode: <quote_expression> subrule | |
Contents | Language Implementations | Perl6 |
quote.pir - <quote_expression> subrule
This file contains the grammar subrules for <quote_expression>, which handles Perl 6's various quoting constructs. Trying to use a regular expression for parsing the various quote styles and interpolations is a bit of a pain, so we write a special-purpose parsing subroutine here.
match
object identifies the type of quoting to parse.
This is simply a lookup into %!quotetable
,
which contains the default adverb settings for the type of quote.
Other adverbs are then merged into the default,
and quote parsing begins.
|