Skip to content

Is it possible to extend the grammar #2187

@evil-shrike

Description

@evil-shrike

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions