Adding Coq hello world program (#1423)

* Create Coq.v

* Update readme.md

* Removed useless things

* Update c/Coq.v

Co-authored-by: Gabe <66077254+MrBrain295@users.noreply.github.com>
This commit is contained in:
pierrbt
2022-10-31 01:09:26 +01:00
committed by GitHub
parent 7e28f74e3d
commit f92f2fde6c
2 changed files with 13 additions and 1 deletions

11
c/Coq.v Normal file
View File

@@ -0,0 +1,11 @@
Require Import Coq.Lists.List.
Require Import Io.All.
Require Import Io.System.All.
Require Import ListString.All.
Import ListNotations.
Import C.Notations.
(** The classic Hello World program. *)
Definition hello_world (argv : list LString.t) : C.t System.effect unit :=
System.log (LString.s "Hello World").