zom-lang / zom

Zom is a Ahead Of Time compiled system programming language.
Other
4 stars 2 forks source link

Improve multiple errors output in the Parser #50

Closed Larsouille25 closed 6 months ago

Larsouille25 commented 1 year ago

It's said in e769064 that the parser can partialy return multiple errors, it's normal and it can only return multiple errors when an unexpected token is in the while let loop of the function parse() because after the smaller function need to return something and for the moment I don't know how to do it.

But it's planed to when an error occur while parsing a function definition or declaration, to skip tokens related to this AST and push the error into the list and continue parse other function definition / declaration etc ...

Originally posted by @Larsouille25 in https://github.com/zom-lang/zom/issues/30#issuecomment-1669418927

Some improvements :

Larsouille25 commented 6 months ago

Postponed, let's see later if we can improve that