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

Support string options in parser #170

Merged
merged 7 commits into from
Nov 21, 2023

Conversation

FlorianPommerening
Copy link
Member

Not complete yet: we want to handle the cases in lexical_analyzer.cc (construct_token_type_expressions and split_tokens) better. So far, this just supports strings in double quotes that have no quotes inside.

return result;
}

string unescape(const string &s) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth mentioning in a code comment that this will not do syntax-checking and therefore accepts "illegal" strings? Illegal strings are those where the final character is an unescaped "" or where an escaping "" is not followed by one of the characters from the specific set that can follow an escaping "".

src/search/parser/lexical_analyzer.cc Show resolved Hide resolved
src/search/parser/lexical_analyzer.cc Outdated Show resolved Hide resolved
@FlorianPommerening FlorianPommerening merged commit 47cc432 into aibasel:main Nov 21, 2023
6 of 11 checks passed
@FlorianPommerening FlorianPommerening deleted the issue1106 branch November 22, 2023 00:07
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.

3 participants