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").

View File

@@ -8,7 +8,7 @@ Thanks to everyone who continues to contribute; new languages are created every
Make sure to see [contributing.md](/contributing.md) for instructions on contributing to the project!
<!--Languages start-->
## Languages (946 total)
## Languages (947 total)
* [!](%23/%21)
* [!@#$%^&*()_+](%23/%21%40%23%24%25%5E%26%E2%88%97%28%29_%2B)
@@ -254,6 +254,7 @@ Make sure to see [contributing.md](/contributing.md) for instructions on contrib
* [ContinuesEquation](c/ContinuesEquation.ce)
* [Control Language](c/Control%20Language.cllc)
* [Cool](c/Cool.cl)
* [Coq](c/Coq.v)
* [Cor](c/Cor.cor)
* [Coral 66](c/Coral%2066.cor)
* [COW](c/COW.cow)