Skip to content

SQL syntax error in the Readme.md example? #1

@eyalroz

Description

@eyalroz

In Readme.md, it says:

auto const identifier_def = (
     (lexeme[alpha >> *ialnum] - reserved_word) >> attr(ast::quot::NONE)
  |  lit("\"") >> lexeme[+ialnum] >> lit("\"")  >> attr(ast::quot::DOUBLE)
  /* ... */
);

but between double-quotes, you should be able to use non-alpha-numeric characters, I think. Also, even without double-quotes - I'm pretty sure the SQL standard allows for, say, underscores in identifiers, at least after the first character. Am I wrong?

PS - I've been wanting to write an SQL parser in Spirit X3 ever since I saw the talk about it by that Ciere fellow... this is awesome! If you're interested in expanding this together to support a wider fragment of SQL, write me...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions