Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Diagnostic system. Basically use panic-mode & Statement-mode for parsing error. #53

Open
mhmdvoid opened this issue Aug 12, 2021 · 0 comments

Comments

@mhmdvoid
Copy link
Owner

mhmdvoid commented Aug 12, 2021

Well, We need to start off simple.
Like, building one for grammar error then we can iterate to build more complex for semantic error and similar.
For instance :
var x: int = 10 // Grammar error, variable declaration missing semi-colon ; FixIt -> should properly handle to var x: int = 10;
typealias Foo : bool; // Grammar error, Foo should be followed by = in typealiasDecl. FixIt -> typealias Foo = bool; .
As you can tell the language helps us a lot here, Since it's not a very high level language, not that complex one can predict at least from very simple context what's going on.
For advance , more HL languages It's really hard to predict what's going on inside user mind and what they want to apply semantically.

@mhmdvoid mhmdvoid changed the title No Diagnostic system. No Diagnostic system. Basically use panic-mode & Statement-mode for parsing error. Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant