This is an archive of the discontinued LLVM Phabricator instance.

[pseudo] Allow opaque nodes to represent terminals
ClosedPublic

Authored by sammccall on Jul 26 2022, 12:03 AM.

Details

Summary

This allows incomplete code such as namespace foo { to be modeled as a
normal sequence with the missing } represented by an empty opaque node.

Diff Detail

Event Timeline

sammccall created this revision.Jul 26 2022, 12:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2022, 12:03 AM
sammccall requested review of this revision.Jul 26 2022, 12:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2022, 12:03 AM
hokein accepted this revision.Jul 26 2022, 2:55 AM

The change looks good, are you planning to use it in the cxx.bnf?

This revision is now accepted and ready to land.Jul 26 2022, 2:55 AM

The change looks good, are you planning to use it in the cxx.bnf?

I want to land a recovery rule that completes scopes (e.g. namespaces) rather than discarding them.

But i have to fix several deficiencies, at least this one, D130550, D130523. and at some point we have to allow rules to have more than one recovery point.

I like having the motivating case in the patch itself but in this case there's just too much of this stuff

This revision was landed with ongoing or failed builds.Jul 26 2022, 4:58 AM
This revision was automatically updated to reflect the committed changes.