Comments (3)
This is a good one.
The general philosophy is that the binder needs to be able to work on any trees, even if the parser reported diagnostics. Otherwise, it's basically impossible to develop something like an IDE where semantic questions need to be answered all the time.
In my next live stream I'm going to introduce type symbols, which includes an error type. This will allow us to not cascade errors. Your particular issue has an easy fix though: we shouldn't be declaring variables when their name token was inserted by the parser. I'll fix that during the next compiler stream.
from minsk.
New episodes getting announced on my birthday. Best. Day. Ever.
from minsk.
from minsk.
Related Issues (20)
- Constant folding eliminates expressions with side effects
- Split diagnostics into warnings and errors
- Generate a warning for dead code
- Generator doesn't work on Unix systems HOT 5
- SyntaxNode.GetChildren() should not return nulls
- Skipped tokens should be part of the syntax tree
- [Feature request] Source Generators
- Add support for local functions
- Expose a semantic model
- Language server for IDE integration.
- Optional Tokens
- Episode 27 is marked private in YouTube HOT 2
- Support 5! HOT 1
- Add support for arrays HOT 1
- Null
- Add a language server HOT 1
- Dead project? HOT 4
- Future of the Project
- Anything happening here?
- Can't run `msc` project. Finishes with error HOT 2
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 minsk.