zapashcanon
1 year ago
13 changed files with 106 additions and 4 deletions
@ -1 +1,3 @@ |
|||
_build |
|||
_coverage |
|||
*.coverage |
|||
|
@ -1,4 +1,48 @@ |
|||
(lang dune 3.0) |
|||
|
|||
(using menhir 2.1) |
|||
(using mdx 0.2) |
|||
|
|||
(cram enable) |
|||
|
|||
(name flambda) |
|||
|
|||
(license ISC) |
|||
|
|||
(authors |
|||
"Léo Andrès <contact@ndrs.fr>") |
|||
|
|||
(maintainers "Léo Andrès <contact@ndrs.fr>") |
|||
|
|||
(source |
|||
(uri git+https://git.zapashcanon.fr/zapashcanon/paper-wasocaml.git)) |
|||
|
|||
(homepage https://git.zapashcanon.fr/zapashcanon/paper-wasocaml) |
|||
|
|||
(bug_reports https://git.zapashcanon.fr/zapashcanon/paper-wasocaml/issues) |
|||
|
|||
(documentation https://doc.zapashcanon.fr/paper-wasocaml) |
|||
|
|||
(generate_opam_files true) |
|||
|
|||
(package |
|||
(name flambda) |
|||
(synopsis |
|||
"Mini flambda") |
|||
(description |
|||
"Mini Flambda") |
|||
(tags |
|||
(ocaml webassembly wasm interpreter flambda)) |
|||
(depends |
|||
(ocaml |
|||
(>= 4.13)) |
|||
sedlex |
|||
(menhir |
|||
(and |
|||
:build |
|||
(>= 20220210))) |
|||
(bisect_ppx |
|||
(and |
|||
:with-test |
|||
(>= "2.5") |
|||
:dev)) |
|||
(odoc :with-doc))) |
|||
|
@ -0,0 +1,34 @@ |
|||
# This file is generated by dune, edit dune-project instead |
|||
opam-version: "2.0" |
|||
synopsis: "Mini flambda" |
|||
description: "Mini Flambda" |
|||
maintainer: ["Léo Andrès <contact@ndrs.fr>"] |
|||
authors: ["Léo Andrès <contact@ndrs.fr>"] |
|||
license: "ISC" |
|||
tags: ["ocaml" "webassembly" "wasm" "interpreter" "flambda"] |
|||
homepage: "https://git.zapashcanon.fr/zapashcanon/paper-wasocaml" |
|||
doc: "https://doc.zapashcanon.fr/paper-wasocaml" |
|||
bug-reports: "https://git.zapashcanon.fr/zapashcanon/paper-wasocaml/issues" |
|||
depends: [ |
|||
"dune" {>= "3.0"} |
|||
"ocaml" {>= "4.13"} |
|||
"sedlex" |
|||
"menhir" {build & >= "20220210"} |
|||
"bisect_ppx" {with-test & >= "2.5" & dev} |
|||
"odoc" {with-doc} |
|||
] |
|||
build: [ |
|||
["dune" "subst"] {dev} |
|||
[ |
|||
"dune" |
|||
"build" |
|||
"-p" |
|||
name |
|||
"-j" |
|||
jobs |
|||
"@install" |
|||
"@runtest" {with-test} |
|||
"@doc" {with-doc} |
|||
] |
|||
] |
|||
dev-repo: "git+https://git.zapashcanon.fr/zapashcanon/paper-wasocaml.git" |
@ -0,0 +1,2 @@ |
|||
file "src/menhir_parser.ml" |
|||
file "src/lexer.ml" |
@ -0,0 +1,4 @@ |
|||
a.flambda1: |
|||
$ dune exec -- flambda a.flambda1 |
|||
42 |
|||
value 42 |
@ -0,0 +1,5 @@ |
|||
b.flambda1: |
|||
$ dune exec -- flambda b.flambda1 |
|||
unhandled exception dumb_exn |
|||
Fatal error: exception File "src/interpret.ml", line 239, characters 4-10: Assertion failed |
|||
[2] |
@ -0,0 +1,6 @@ |
|||
c.flambda1: |
|||
$ dune exec -- flambda c.flambda1 |
|||
42 |
|||
42 |
|||
42 |
|||
value 42 |
@ -0,0 +1,2 @@ |
|||
(cram |
|||
(deps %{bin:flambda} a.flambda1 b.flambda1 c.flambda1)) |
Loading…
Reference in new issue