Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Cobol/Test-Suite/SQL M/     Datei vom 4.1.2008 mit Größe 883 B image not shown  

Quelle  dAst.ml

  Sprache: SML
 

(************************************************************************)
(*         *      The Rocq Prover / The Rocq Development Team           *)
(*  v      *         Copyright INRIA, CNRS and contributors             *)
(* <O___,, * (see version control and CREDITS file for authors & dates) *)
(*   \VV/  **************************************************************)
(*    //   *    This file is distributed under the terms of the         *)
(*         *     GNU Lesser General Public License Version 2.1          *)
(*         *     (see LICENSE file for the text of the license)         *)
(************************************************************************)

open CAst

type ('a, _) thunk =
| Value : 'a -> ('a, 'b) thunk
| Thunk : 'a Lazy.t -> ('a, [ `thunk ]) thunk

type ('a, 'b) t = ('a, 'b) thunk CAst.t

let map_thunk (type s) f : (_, s) thunk -> (_, s) thunk = function
| Value x -> Value (f x)
| Thunk k -> Thunk (lazy (f (Lazy.force k)))

let get_thunk (type s) : ('a, s) thunk -> 'a = function
| Value x -> x
| Thunk k -> Lazy.force k

let get x = get_thunk x.v

let make ?loc v = CAst.make ?loc (Value v)

let delay ?loc v = CAst.make ?loc (Thunk (Lazy.from_fun v))

let force x = CAst.make ?loc:x.CAst.loc (Value (get_thunk x.v))

let map f n = CAst.map (fun x -> map_thunk f x) n

let map_with_loc f n =
  CAst.map_with_loc (fun ?loc x -> map_thunk (fun x -> f ?loc x) x) n

let map_from_loc f (loc, x) =
  make ?loc (f ?loc x)

let with_val f n = f (get n)

let with_loc_val f n = f ?loc:n.CAst.loc (get n)

Messung V0.5 in Prozent
C=80 H=100 G=90

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-05-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.