TITLE ^

quote.pir - <quote_expression> subrule

DESCRIPTION ^

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.

__onload()

Initialize the tables needed for quote parsing.

quote_expression(match [, adverbs :slurpy :named])

Parse a quoted expression of some sort. The $<KEY> attribute of the incoming 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.


parrot