aboutsummaryrefslogtreecommitdiff
path: root/plugins/syntax
diff options
context:
space:
mode:
authorHugo Herbelin2016-04-13 11:06:00 +0200
committerHugo Herbelin2016-04-27 21:55:48 +0200
commitdf1e24f64f68318221d08246098837368ee1b406 (patch)
treee37edba3d78858741fb7c5c6c22a511215705f05 /plugins/syntax
parent84d8a4bd7d797b6e13e4107ad24a6dcf4f098dbb (diff)
A fix to #3709: ensuring extra parentheses when a tactic entry has a
subentry at a higher tactic level than the entry itself. This is applicable to the parsing of expressions with infix or postfix operators such as ; or ||. Could be improved, e.g. so that no parenthesis are put when the expression is the rightmost one, as in: now (tac1;tac2) where parentheses are not needed but still printed with this patch, while the patch adds needed parentheses in (now tac1);tac2 This would hardly scale to more complex grammars. E.g., if a suffix expression can extend a leading expression as part of different grammar entries, as in let x := simpl in y ... I don't see in general how to anticipate the need for parentheses without restarting the parser to check the reversibility of the printing.
Diffstat (limited to 'plugins/syntax')
0 files changed, 0 insertions, 0 deletions