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

Introduce a syntax element to explicitly end a query string #305

Open
james-whiteside opened this issue Oct 3, 2023 · 0 comments
Open

Comments

@james-whiteside
Copy link

Problem to Solve

Currently, parsing of a string containing multiple concatenated queries (as in TypeDB Studio) has the possibility to generate ambiguous results. Specifically: (match, insert) cannot be distinguished from match-insert, and (match-delete, insert) cannot be distinguished from match-delete-insert.

Current Workaround

Interpose dummy queries that do nothing to separate multiple queries interpreted as multiple clauses of the same query.

Proposed Solution

Introduce an end; clause that can be placed after any previous clause to signify the end of a query. If the query up until end; is not correct syntax, then an error is thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants