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

Adds QNames antiquote production. #726

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

hypnoticOxbow
Copy link
Contributor

@hypnoticOxbow hypnoticOxbow commented Nov 4, 2022

Changes

Adds Antiquote productions for QNames

Documentation

The changes made by this PR are short, and do not require specific documentation as they are small additions to the metatranslation antiquotes.

@@ -51,6 +51,14 @@ top::QNames ::= id1::QNameWithTL ',' id2::QNames
top.qnames = [id1] ++ id2.qnames;
}

abstract production qNamesError
Copy link
Member

Choose a reason for hiding this comment

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

This "error" production doesn't actually flow up the errors in msg, since errors doesn't occur on QNames. This production isn't needed anyway, see my comment below.

{
top.unparse = s"$$QNames{${e.unparse}}";
forwards to
qNamesError(
Copy link
Member

Choose a reason for hiding this comment

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

This can be qNamesSingle(qNameWithTL(qNameError(...), botlNone()) to avoid adding a new "error" production that is only useful here.

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.

2 participants