package frama-c
Platform dedicated to the analysis of source code written in C
Install
Dune Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
NNicolas Bellec
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
VVincent Botbol
-
QQuentin Bouillaguet
-
DDavid Bühler
-
ZZakaria Chihani
-
SSylvain Chiron
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
BBenjamin Jorge
-
FFlorent Kirchner
-
AAlexander Kogtenkov
-
RRemi Lazarini
-
TTristan Le Gall
-
KKilyan Le Gallic
-
JJean-Christophe Léchenet
-
MMatthieu Lemerre
-
DDara Ly
-
DDavid Maison
-
CClaude Marché
-
AAndré Maroneze
-
TThibault Martin
-
FFonenantsoa Maurica
-
MMelody Méaulle
-
BBenjamin Monate
-
YYannick Moy
-
PPierre Nigron
-
AAnne Pacalet
-
VValentin Perrelle
-
GGuillaume Petiot
-
DDario Pinto
-
VVirgile Prevosto
-
AArmand Puccetti
-
FFélix Ridoux
-
VVirgile Robles
-
JJan Rochel
-
MMuriel Roger
-
CCécile Ruet-Cros
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
frama-c-31.0-Gallium.tar.gz
sha256=a94384f00d53791cbb4b4d83ab41607bc71962d42461f02d71116c4ff6dca567
doc/frama-c.kernel/Frama_c_kernel/Filesystem/Operators/index.html
Module Filesystem.Operators
Opening this module allows to use shorter syntax to deal with files.
let open Filesystem.Operators in
let result =
let+ channel = Filesystem.with_open_out filepath in
output_string channel "42";
in
match result with
| Ok () -> ()
| Error error ->
Format.printf "error writing to file %a: %s"
Filepath.pretty filepath
error
When the file processing returns a result by itself, the operator let*
can be used instead:
let open Filesystem.Operators in
let* channel = Filesystem.with_open_in filepath in
try
let header = input_line channel in
if header = "42"
then Ok ()
else Error "wrong file header"
with End_of_file ->
Error "file is empty"
Result operators
These operators are intended to be used with with_open_in
or with_open_out
.
val (let+) :
('ch, 'a) safe_processor ->
('ch -> 'a) ->
('a, string) Stdlib.result
val (let*) :
('ch, ('a, string) Stdlib.result) safe_processor ->
('ch -> ('a, string) Stdlib.result) ->
('a, string) Stdlib.result
Exception operators
These operators are intended to be used with with_open_in_exn
or with_open_out_exn
, error Sys_error
must be caught.
val (let$) : ('ch, 'a) exn_processor -> ('ch -> 'a) -> 'a
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page