You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But with that, I can only successfully parse "a" or "a.b.c.d".
What could I do to fix this ? The only alternate solution I've come with is to put each item (catalog, schema, table and column) in an array, but that kind of breaks the original grammar.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to parse a SQL like language and I can't find a way to define the grammar for a "column reference".
The strings I'm trying to parse look like "catalog.schema.table.column" or could be just "column" or "table.column" or even "schema.table.column".
So for that kind of input, the grammar is defined like this in BNF:
What I've tried so far is this:
But with that, I can only successfully parse "a" or "a.b.c.d".
What could I do to fix this ? The only alternate solution I've come with is to put each item (catalog, schema, table and column) in an array, but that kind of breaks the original grammar.
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions