Thanks to visit codestin.com
Credit goes to github.com

Skip to content

No strings #16

@mmoderau

Description

@mmoderau

This mode does not treat quoted strings as strings. I am aware this is on purpose:

    ;; In BNF there are no strings
    ;; so treat ' and " as a symbols
    (modify-syntax-entry ?\" "_" table)
    (modify-syntax-entry ?\' "_" table)

All resources I could find about pure BNF (as opposed to EBNF and ABNF) show quoted strings.

This decision prevents specifying terminals as strings, especially strings containing a semicolon (unless escaped with a backslash as "\;").

I believe double quoted strings should be restored.

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