doc-src/IsarRef/generic.tex
changeset 17228 19b460b39dad
parent 17139 165c97f9bb63
child 17274 746bb4c56800
equal deleted inserted replaced
17227:398a7353ca69 17228:19b460b39dad
   112 \railterm{printlocale}
   112 \railterm{printlocale}
   113 
   113 
   114 \begin{rail}
   114 \begin{rail}
   115   'locale' ('(open)')? name ('=' localeexpr)?
   115   'locale' ('(open)')? name ('=' localeexpr)?
   116   ;
   116   ;
   117   printlocale localeexpr
   117   printlocale '!'? localeexpr
   118   ;
   118   ;
   119   localeexpr: ((contextexpr '+' (contextelem+)) | contextexpr | (contextelem+))
   119   localeexpr: ((contextexpr '+' (contextelem+)) | contextexpr | (contextelem+))
   120   ;
   120   ;
   121 
   121 
   122   contextexpr: nameref | '(' contextexpr ')' |
   122   contextexpr: nameref | '(' contextexpr ')' |
   222 
   222 
   223 \item [$\isarkeyword{print_locale}~import~+~body$] prints the specified locale
   223 \item [$\isarkeyword{print_locale}~import~+~body$] prints the specified locale
   224   expression in a flattened form.  The notable special case
   224   expression in a flattened form.  The notable special case
   225   $\isarkeyword{print_locale}~loc$ just prints the contents of the named
   225   $\isarkeyword{print_locale}~loc$ just prints the contents of the named
   226   locale, but keep in mind that type-inference will normalize type variables
   226   locale, but keep in mind that type-inference will normalize type variables
   227   according to the usual alphabetical order.
   227   according to the usual alphabetical order.  The command omits
       
   228   $\isarkeyword{notes}$ elements by default.  Use
       
   229   $\isarkeyword{print_locale}!$ to get them included.
   228 
   230 
   229 \item [$\isarkeyword{print_locales}$] prints the names of all locales of the
   231 \item [$\isarkeyword{print_locales}$] prints the names of all locales of the
   230   current theory.
   232   current theory.
   231 
   233 
   232 \end{descr}
   234 \end{descr}