X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fhelp%2FC%2Fsec_usernotation.xml;h=e141bd85997a9a82ea23adf6395b2c9ab0867587;hb=db235934efa41a0f38e79747f6db4f468367410b;hp=46bf146c97d684bafb5c180a9fd648917484ac02;hpb=ef1893c67c666d28018ad74f72db4d29ad669b84;p=helm.git diff --git a/helm/software/matita/help/C/sec_usernotation.xml b/helm/software/matita/help/C/sec_usernotation.xml index 46bf146c9..e141bd859 100644 --- a/helm/software/matita/help/C/sec_usernotation.xml +++ b/helm/software/matita/help/C/sec_usernotation.xml @@ -84,7 +84,7 @@ | - left associative + right associative Right associative @@ -104,7 +104,13 @@ ¬ation_rhs; ::= + &unparsed_ast; &TODO; + + + + | + &unparsed_meta; &TODO; @@ -112,19 +118,368 @@ - notation_lhs + unparsed_ast - ¬ation_lhs; + &unparsed_ast; ::= + @{&enriched_term;} + A content level AST (a term which is parsed, but not disambiguated). + + + + | + @&id; + @id is just an abbreviation for @{id} + + + + | + @&csymbol; + @'symbol is just an abbreviation for @{'symbol} + + + +
+ + + enriched_term + + + + &enriched_term; + ::= + 〈〈A term that may contain occurrences of &unparsed_meta;, even as variable names in binders, and occurrences of &csymbol;〉〉 &TODO; + + + +
+ + + unparsed_meta + + + + &unparsed_meta; + ::= + ${&level2_meta;} &TODO; + + + | + $&id; + $id is just an abbreviation for ${id} + + + + | + $_ + $_ is just an abbreviation for ${_} +
+ + level2_meta + + + + &level2_meta; + ::= + &unparsed_ast; + &TODO; + + + + | + term &nat; &id; + &TODO; + + + + | + number &id; + &TODO; + + + + | + ident &id; + &TODO; + + + + | + fresh &id; + &TODO; + + + + | + anonymous + &TODO; + + + + | + &id; + &TODO; + + + + | + fold [left|right] &level2_meta; rec &id; &level2_meta; + &TODO; + + + + | + default &level2_meta; &level2_meta; + &TODO; + + + + | + if &level2_meta; then &level2_meta; else &level2_meta; + &TODO; + + + + | + fail + &TODO; + + + +
+ + + notation_lhs + + + + ¬ation_lhs; + ::= + &layout; [&layout;]… + + + +
+ + + layout + + + + &layout; + ::= + &layout; \sub &layout; + Subscript + + + + | + &layout; \sup &layout; + Superscript + + + + | + &layout; \below &layout; + + + + + | + &layout; \above &layout; + + + + + | + &layout; \over &layout; + + + + + | + &layout; \atop &layout; + + + + + | + &layout; \frac &layout; + Fraction + + + + | + \infrule &layout; &layout; &layout; + Inference rule (premises, conclusion, rule name) + + + + | + \sqrt &layout; + Square root + + + + | + \root &layout; \of &layout; + Generalized root + + + + | + hbox ( &layout; [&layout;]… ) + Horizontal box + + + + | + vbox ( &layout; [&layout;]… ) + Vertical box + + + + | + hvbox ( &layout; [&layout;]… ) + Horizontal and vertical box + + + + | + hovbox ( &layout; [&layout;]… ) + Horizontal or vertical box + + + + | + break + Breakable space + + + + | + ( &layout; [&layout;]… ) + Group + + + + | + &id; + Placeholder for a term with no explicit precedence + + + + | + term &nat; &id; + Placeholder for a term with explicit expected precedence + + + + | + number &id; + Placeholder for a natural number + + + + | + ident &id; + Placeholder for an identifier + + + + | + &literal; + Literal + + + + | + opt &layout; + Optional layout (it can be omitted for parsing) + + + + | + list0 &layout; + [sep &literal;] + List of layouts separated by sep (default: + any blank) + + + + + | + list1 &layout; + [sep &literal;] + Non empty list of layouts separated by sep + (default: any blank) + + + + + | + mstyle &id; value (&layout;) + + Style attributes like color #ff0000 + + + + + | + mpadded &id; value (&layout;) + + padding attributes like width -150% + + + + + | + maction (&layout;) + [ (&layout;) … ] + + Alternative notations (output only) + + + + + +
+ + + literal + + + + &literal; + ::= + &symbol; + Unicode symbol + + + + | + &nat; + Natural number (a constant) + + + + | + '&id;' + New keyword for the lexer + + + +
+ @@ -204,7 +559,7 @@ | - _ + ? An implicit parameter