Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

Distinguish recovering/compilation mode #8

Open
Simn opened this issue Feb 21, 2017 · 2 comments
Open

Distinguish recovering/compilation mode #8

Simn opened this issue Feb 21, 2017 · 2 comments

Comments

@Simn
Copy link
Member

Simn commented Feb 21, 2017

The parser is currently very permissive by default. It inserts various missing tokens and skips invalid ones. This is nice for display support, but if we want to make it the official parser at some point, we will have to emit errors properly.

@nadako
Copy link
Member

nadako commented Feb 21, 2017

Could this be done by passing some report_error function to the parser that either collects them as diagnostics for display or throws an exception eagerly for real compilation?

@Simn
Copy link
Member Author

Simn commented Feb 21, 2017

I'm not sure. We do that in Haxe for errors and it has gotten a bit messy.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants