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

Better "unexpected kw" handling in ternary parsing #77

Merged
merged 8 commits into from
Sep 14, 2022

Conversation

pfitzseb
Copy link
Member

No description provided.

@pfitzseb pfitzseb requested a review from c42f August 25, 2022 12:38
@pfitzseb pfitzseb force-pushed the sp/ternary-unexpected-kw branch 2 times, most recently from 2915bd9 to 424be21 Compare August 25, 2022 12:49
@pfitzseb pfitzseb force-pushed the sp/ternary-unexpected-kw branch from 424be21 to 15c028c Compare August 25, 2022 12:49
src/parser.jl Outdated Show resolved Hide resolved
Co-authored-by: Kristoffer Carlsson <[email protected]>
Copy link
Member

@c42f c42f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine, as far as it goes.

I've been procrastinating about doing this review because I want to do error reporting more like I've vaguely outlined in #93.

But to motivate a general system like #93 we do need a bunch of specific use cases like this, #92 and all the other specific error messages which are hardcoded in various places.

So as long as error recovery is clearly marked and doesn't cause large scale disruption of the parser I think we can add it piecemeal for now.

end

# FIXME: This is a very specific case. Error recovery should be handled more
# generally elsewhere.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aha agreed! This is why I've been wondering what to do about this PR.

tools/check_all_packages.jl Outdated Show resolved Hide resolved
@pfitzseb pfitzseb merged commit 4818362 into main Sep 14, 2022
@pfitzseb pfitzseb deleted the sp/ternary-unexpected-kw branch September 14, 2022 11:12
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

Successfully merging this pull request may close these issues.

3 participants