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

Is it possible to extend the grammar #2187

Open
evil-shrike opened this issue Oct 25, 2024 · 0 comments
Open

Is it possible to extend the grammar #2187

evil-shrike opened this issue Oct 25, 2024 · 0 comments
Assignees

Comments

@evil-shrike
Copy link

evil-shrike commented Oct 25, 2024

Hi

I want to parse queries in my own SQL flavor (extension to Google Ads Query Language):

SELECT
  ad_group_ad.policy_summary.policy_topic_entries:topic~0 as topic_id
FROM ad_group_ad

mostly it's basic SQL-compatible but columns can have ~ symbols (it's kinda operator to extract resource id from resource name).
Currently the parsing fails at ~ symbols.
Is it possible to extend the grammar somehow?
I guess parser is a generated code (pegjs? btw why didn't you move to peggyjs), so I doubt, but want to confirm.

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

No branches or pull requests

2 participants