Giter Site home page Giter Site logo

Comments (8)

Gabriella439 avatar Gabriella439 commented on June 25, 2024 5

I completed the first version of the standardized grammar here:

https://github.com/dhall-lang/dhall-lang/blob/bbc74064b2625d9c7635c7bfd1a55cede6a229aa/standard/dhall.abnf

Also, I think the scope of this issue should change to instead porting Dhall to natively integrate with either C, C++, or Rust, since I assume that an implementation in one of those languages can (with some effort) be reused by other languages that can bind to C

from dhall-lang.

Gabriella439 avatar Gabriella439 commented on June 25, 2024 4

I think an even more important first step is to just specify the language grammar using BNF or ABNF syntax (as part of standardizing the language) and then focus on porting to specific languages or libraries

from dhall-lang.

Profpatsch avatar Profpatsch commented on June 25, 2024

One pain point might be that hammer is made for binary parsing, so Unicode is not supported at all.

from dhall-lang.

felix91gr avatar felix91gr commented on June 25, 2024

Complementing what Gabriel has said, here is a good resource on BNFs and EBNFs: What are they and how do they work.

The good thing of such formal specifications are:

  • Ambiguity is not a concern anymore: the language becomes 100% defined.
  • There are automatic compiler generators, like YACC, which can parse BNF and give you a compiler for your grammar.

from dhall-lang.

Gabriella439 avatar Gabriella439 commented on June 25, 2024

First pass at full ABNF grammar for Dhall here: #14

from dhall-lang.

f-f avatar f-f commented on June 25, 2024

I'll change the title of the issue to reflect the new scope

from dhall-lang.

Nadrieril avatar Nadrieril commented on June 25, 2024

https://github.com/Nadrieril/dhall-rust is now a thing. Does that close this issue ?

from dhall-lang.

Profpatsch avatar Profpatsch commented on June 25, 2024

Basically, since I expect most languages to get FFI for rust code sooner or later. And if not, we could expose it as a C library.

from dhall-lang.

Related Issues (20)

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.