Comments (1)
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)
- FileSystem Package: Read file convenience functions
- Use Bencher for tracking benchmark results HOT 1
- Complex Number Package
- Single-line struct exceeds max width
- ANSI Escape Sequences Package
- Assignment with comment and single line is formatted incorrectly
- Formatter just weird in match case with many alternatives
- Nested struct pattern formatting could be shorter
- MIR optimization wrong when referencing parameter
- Expose formatter in the CLI
- Document pipe operator
- Support workflow runs from forks
- Assignment body after long left side contains unnecessary newline
- ASCII Package
- Extension panic on getting parent of root
- Wasm VM
- Remove `old_packages`
- Add debug checks for `unchecked_…` functions
- Use after free when printing heap objects
- Leading whitespaces after indentation are not parsed correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from candy.