Giter Club home page Giter Club logo

grammars's Introduction

Grammars

This repository collects grammar specifications for languages and formats in the Aleo ecosystem. Copies of these grammars can be found in other Aleo repositories, where they are used for various purposes (e.g. documentation), but the main copies are in this repository. These main copies should be the first ones to be edited for changes and extensions, with the other copies to follow suit as practical (updating the other copies may require updating other parts of those repositories, so it is expected that those copies may be temporarily out of date when these main copies are modified).

Contents of this repository:

  • leo.abnf is the ABNF grammar of Leo.
  • aleo.abnf is the ABNF grammar of Aleo instructions.

See the Aleo developer documentation for infomation on Leo and Aleo instructions.

See this Wikipedia page for information on the ABNF grammar notation. Note that lines of ABNF grammar files must be terminated by CR LF, which is enforced via .gitattributes file entries; this is a requirement of the ABNF grammar notation itself (but does not apply to languages whose syntax is specified in ABNF).

grammars's People

Contributors

acoglio avatar evan-schott avatar collinc97 avatar harukama avatar d0cd avatar bendyarm avatar

Stargazers

 avatar alireza avatar tarkhoon avatar hoda avatar  avatar sed lin avatar sam trader avatar  avatar Ebra  avatar Sparkthegod avatar ErkanKARAGUL avatar  avatar Mohammed Alobaidi avatar Evan Marshall avatar pepol742 avatar  avatar

Watchers

 avatar Fabiano Prestes avatar  avatar  avatar  avatar Eric W. Smith avatar  avatar

grammars's Issues

Finalize-type for key and values

The grammar uses the same finalize-type for
mapping key and values However the implementation only considers the “.public” type.

image

Leo ABNF doesn't cover associated function calls

When trying to re-implement compiler checks, I've found that there are associated functions for some basic types, like:

    transition main(id_type: i8) -> i8 {
        let x: i8 = id_type.abs();
        let y: i8 = x.add(id_type);
        return y;
    }

However it doesn't seems like they are defined in the grammar.

Finalize-type for inputs

The grammar allows two extra finalize-type's that are not taken into account in the implementation.

image

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.