Git Product home page Git Product logo

Comments (1)

JonasWanke avatar JonasWanke commented on May 24, 2024 3

Hi, thanks for your interest! We do have an (outdated!) ANTLR v4 grammar file. It's not yet in this repository, and due to it being outdated, I don't want to add it right now, but you can view it here: https://files.wanke.cloud/f/0e3243926ab4435ba536/.

We're currently working on the compiler written in Dart, and in parallel building the Candy standard library. The current parser uses petitparser and is located here: https://github.com/JonasWanke/candy/blob/d4d56b0d517af05735753f3414bf01af41bad9f2/packages/parser/lib/src/parser/grammar.dart.

When we have some basic utilities and the compiler has enough features, we plan to bootstrap the compiler, i.e., rewrite it in Candy itself. You can see an overview of the current design & implementation status (and what's required for the bootstrapping) over here: https://files.wanke.cloud/f/8a57ff4c3349426f8634/.

Part of the bootstrapping process consists of creating a new (more fault-tolerant) parser, though we haven't decided on the type of parser yet, or whether we'll use a parser generator or not. Either way, running Candy as an interpreted language is a use-case we definitely want to support, if only because we can use that to evaluate compile-time expressions.

We'll soon update the README and include some info about the rewrite and architecture of this project. Don't hesitate to ask if you have any further questions :)

from candy.

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.