Skip to content

Better "unexpected kw" handling in ternary parsing#77

Merged
pfitzseb merged 8 commits intomainfrom
sp/ternary-unexpected-kw
Sep 14, 2022
Merged

Better "unexpected kw" handling in ternary parsing#77
pfitzseb merged 8 commits intomainfrom
sp/ternary-unexpected-kw

Conversation

@pfitzseb
Copy link
Copy Markdown
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
Comment thread src/parser.jl Outdated
Co-authored-by: Kristoffer Carlsson <[email protected]>
Copy link
Copy Markdown
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.

Comment thread src/parser.jl
end

# FIXME: This is a very specific case. Error recovery should be handled more
# generally elsewhere.
Copy link
Copy Markdown
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.

Comment thread tools/check_all_packages.jl Outdated
@pfitzseb pfitzseb merged commit 4818362 into main Sep 14, 2022
@pfitzseb pfitzseb deleted the sp/ternary-unexpected-kw branch September 14, 2022 11:12
c42f pushed a commit to JuliaLang/julia that referenced this pull request Oct 17, 2025
…ary-unexpected-kw

Better "unexpected kw" handling in ternary parsing
topolarity pushed a commit to JuliaLang/julia that referenced this pull request Nov 14, 2025
…ary-unexpected-kw

Better "unexpected kw" handling in ternary parsing
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