-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
Some library reorg
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.ml | ||
_build | ||
lib |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Hello | ||
|
||
open FStar.IO | ||
|
||
let _ = print_string "Hi!\n" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FSTAR_EXE ?= ../../bin/fstar.exe | ||
|
||
.PHONY: all | ||
all: run | ||
|
||
Hello.ml: Hello.fst | ||
$(FSTAR_EXE) --codegen OCaml Hello.fst --extract Hello | ||
|
||
bin/hello.exe: Hello.ml | ||
$(FSTAR_EXE) --ocamlenv dune build @install --profile=release | ||
$(FSTAR_EXE) --ocamlenv dune install --prefix=. | ||
|
||
.PHONY: run | ||
run: bin/hello.exe | ||
./bin/hello.exe | grep "Hi!" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(executable | ||
(name hello) | ||
(public_name hello.exe) | ||
(libraries fstar.lib) | ||
(modes native) | ||
) | ||
(env | ||
(_ | ||
(bin_annot false) | ||
(flags (:standard -w -A))) | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(lang dune 3.8) | ||
(name hello) | ||
|
||
(package | ||
(name hello) | ||
(synopsis "An example F* application") | ||
) |