Giter VIP home page Giter VIP logo

yaml.ar's Introduction

yaml.yaml

A lambda calculus syntax for YAML

Aside from the mapping from YAML to lambda calculus itself, you'll find modules that I implemented to test the expresiveness of the language

risp-yaml

This module implements lisp on top of the YAML syntax.

REPL

$ cd interpreter.rust
$ cargo run -q
risp-yaml >
a: [+, 40, a]

๐Ÿ”ฅ RispFunction(...)
risp-yaml >
[a, 2]

๐Ÿ”ฅ Int(42)

yaml.ar's People

Contributors

colltoaction avatar

Stargazers

 avatar Federico del Mazo avatar Cecilia Hortas avatar Amirmohammad Ghazi dizaji avatar A-lan avatar

Watchers

James Cloos avatar  avatar

yaml.ar's Issues

Write a category-theoretic description

At its core, yaml.yaml just wants to be a functor that maps between the yaml and lambda categories.


With yaml we get a human friendly data serialization standard for all programming languages. More specifically I see:

  • specification
  • syntax
  • (de)serializers
  • performance
  • community
  • advanced editors
  • online editors

On the other hand, the yaml spec is pretty dense and we don't want to deal with everything from the beginning.


The mapping to lambda is not just for the math, but we actually want to run software in a computer. In #2 I took a lambda calculus interpreter written in Rust and I was able to map simple documents to lambda terms.

A different approach could map between languages (transpiling). Haskell seems to be the closest but I'm not familiar with the syntax or tooling.

Write an interpreter

I can think of two approaches:

  1. A transpiler would take YAML files as text input and output a code project (e.g an sbt project). Clever use of Rust macros could also fit this category.
  2. An interpreter would read YAML files at runtime. This could be well suited for Scala + Cats

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.