1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-24 07:57:58 +03:00
Juvix empowers developers to write code in a high-level, functional language, compile it to gas-efficient output VM instructions, and formally verify the safety of their contracts prior to deployment and execution.
Go to file
Jonathan Prieto-Cubides 9b8474e809 [ Syntax ] cosmetics.
2021-10-30 12:15:39 +02:00
.github/workflows Add CI to the qtt branch 2021-10-26 15:09:39 +02:00
doc First commit, initial project template. 2021-09-26 18:59:51 +02:00
notes [ Syntax ] refactor due to a new datatype for variables 2021-10-30 12:08:12 +02:00
src [ Syntax ] cosmetics. 2021-10-30 12:15:39 +02:00
workflows First commit, initial project template. 2021-09-26 18:59:51 +02:00
.ghci First commit, initial project template. 2021-09-26 18:59:51 +02:00
.gitignore Added agda ignores 2021-10-18 16:45:34 +02:00
.hlint.yaml [ Makefile ] added "prepare-push" to call hlint, ormolu, and check line witdh. 2021-10-30 11:51:42 +02:00
cabal.project Minor additions 2021-10-18 19:21:30 +02:00
CHANGELOG.md First commit, initial project template. 2021-09-26 18:59:51 +02:00
hie.yaml [ .cabal ] Fixed Haskell compilation, upgraded dependencies. 2021-10-26 14:49:51 +02:00
LICENSE First commit, initial project template. 2021-09-26 18:59:51 +02:00
Makefile [ Makefile ] added "prepare-push" to call hlint, ormolu, and check line witdh. 2021-10-30 11:51:42 +02:00
minijuvix.agda-lib [ agda ] added syntax for bitypechcking. 2021-10-18 19:24:21 +02:00
MiniJuvix.cabal [ cabal ] Ussing standalone deriving for some types in Core and Eval modules. 2021-10-30 11:55:05 +02:00
README.md [ README ] Update branch description. 2021-10-26 14:50:52 +02:00
stack.yaml [ .cabal ] Fixed Haskell compilation, upgraded dependencies. 2021-10-26 14:49:51 +02:00

MiniJuvix GPL-3.0-only license Haskell CI

This repository aims to be a conservative Haskell project of a tiny language with dependent types based on the Juvix project. The primary purpose is to be a laboratory to study/experiment in implementing a functional language with dependent types.

In this branch qtt, MiniJuvix aims to be programming language based on Quantitative type theory, but with the semiring of the extended natural numbers. Some Haskell code has been generated automatically by agda2hs. In the future, we want to prove properties about the Minijuvix programs directly in Agda.

The following is a tentative project structure, but it can change at any moment. See below the file project structure. The diagram shows the design of the compiler related with the project structure.

In the picture, syntax transformations are denoted by pᵢ (e.g. passes in the Juvix Translate library) and checking operations are denoted by cᵢ (e.g. found in the Juvix Core library), and both families of items are the priority of this project.

$ tree src/
...
src
 ├─ app
 │ ├─ Main.hs
 │ └─ Options.hs
 ├─ MiniJuvix
 │ ├─ Pipeline.hs
 │ ├─ Parser
 │ ├─ Syntax
 │ │ ├─ Sugared.hs
 │ │ ├─ Desugared.hs
 │ │ ├─ Core.Agda
 │ │ ├─ Core.hs
 │ │ └─ Eval.Agda
 │ │ └─ Eval.hs
 │ ├─ Typing
 │ │ ├─ Scopechecking.hs
 │ │ ├─ Coverage.hs
 │ │ ├─ Typechecking.hs
 │ │ ├─ Termination.hs
 │ │ └─ Erasure.hs
 │ └─ Utils
 │   ├─ Parsing.hs
 │   ├─ Pretty.hs
 │   ├─ File.hs
 │   └─ Version.hs
 └─ test
     └─ Spec.hs
...