doc-src/IsarRef/Thy/HOL_Specific.thy
changeset 28562 4e74209f113e
parent 27706 10a6ede68bc8
child 28603 b40800eef8a7
equal deleted inserted replaced
28561:056255ade52a 28562:4e74209f113e
   991     ;
   991     ;
   992 
   992 
   993     syntax: string | ( 'infix' | 'infixl' | 'infixr' ) nat string
   993     syntax: string | ( 'infix' | 'infixl' | 'infixr' ) nat string
   994     ;
   994     ;
   995 
   995 
   996     'code' ('func' | 'inline') ( 'del' )?
   996     'code' ( 'inline' ) ? ( 'del' ) ?
   997     ;
   997     ;
   998   \end{rail}
   998   \end{rail}
   999 
   999 
  1000   \begin{descr}
  1000   \begin{descr}
  1001 
  1001 
  1078 
  1078 
  1079   \item [@{command (HOL) "code_abort"}] declares constants which
  1079   \item [@{command (HOL) "code_abort"}] declares constants which
  1080   are not required to have a definition by means of defining equations;
  1080   are not required to have a definition by means of defining equations;
  1081   if needed these are implemented by program abort instead.
  1081   if needed these are implemented by program abort instead.
  1082 
  1082 
  1083   \item [@{attribute (HOL) code}~@{text func}] explicitly selects (or
  1083   \item [@{attribute (HOL) code}] explicitly selects (or
  1084   with option ``@{text "del:"}'' deselects) a defining equation for
  1084   with option ``@{text "del"}'' deselects) a defining equation for
  1085   code generation.  Usually packages introducing defining equations
  1085   code generation.  Usually packages introducing defining equations
  1086   provide a reasonable default setup for selection.
  1086   provide a reasonable default setup for selection.
  1087 
  1087 
  1088   \item [@{attribute (HOL) code}@{text inline}] declares (or with
  1088   \item [@{attribute (HOL) code}@{text inline}] declares (or with
  1089   option ``@{text "del:"}'' removes) inlining theorems which are
  1089   option ``@{text "del"}'' removes) inlining theorems which are
  1090   applied as rewrite rules to any defining equation during
  1090   applied as rewrite rules to any defining equation during
  1091   preprocessing.
  1091   preprocessing.
  1092 
  1092 
  1093   \item [@{command (HOL) "print_codesetup"}] gives an overview on
  1093   \item [@{command (HOL) "print_codesetup"}] gives an overview on
  1094   selected defining equations, code generator datatypes and
  1094   selected defining equations, code generator datatypes and