aboutsummaryrefslogtreecommitdiff
path: root/kernel/type_errors.mli
diff options
context:
space:
mode:
authorEnrico Tassi2019-03-08 16:16:34 +0100
committerEnrico Tassi2019-03-31 14:36:28 +0200
commit46b9e086093d66ff7a916e0475549a9cfb0b056d (patch)
treee164a8738f3372d1c46a318e39f27abf0f26f9eb /kernel/type_errors.mli
parent912eaf40d4efd29b7e3489d51c55b8b79206df79 (diff)
[parsing] add keyword-protected generic quotation
One can now register a quotation using a grammar rule with QUOTATION("name:"). "name:" becomes a keyword and the token is generated for name: followed by a an identifier or a parenthesized text. Eg constr:x string:[....] ltac:(....) ltac:{....} The delimiter is made of 1 or more occurrences of the same parenthesis, eg ((.....)) or [[[[....]]]]. The idea being that if the text happens to contain the closing delimiter, one can make the delimiter longer and avoid confusion (no escaping). Eg string:[[ .. ']' .. ]] Nesting the delimiter is allowed, eg ((..((...))..)) is OK. The text inside the quotation is returned as a string (including the parentheses), so that a third party parser can take care of it. Keywords don't need to end in ':'.
Diffstat (limited to 'kernel/type_errors.mli')
0 files changed, 0 insertions, 0 deletions