Skip to content

fix(input): align canonical availability grammar - #7823

Open
Stardust0831 wants to merge 3 commits into
deepmodeling:developfrom
Stardust0831:availability-canonical-grammar
Open

fix(input): align canonical availability grammar#7823
Stardust0831 wants to merge 3 commits into
deepmodeling:developfrom
Stardust0831:availability-canonical-grammar

Conversation

@Stardust0831

Copy link
Copy Markdown
Collaborator

This is a follow-up to #7783 and is related to #7822. It aligns the documented availability grammar with the canonical syntax enforced by the parser and setter. The public parser now rejects non-canonical spellings by comparing the input with the AST serializer output, the setter no longer duplicates that check, and the parser no longer accepts a comma as an alternative spelling of and.

The developer guide now states the exact spacing rules and gives explicit valid and invalid examples, including mode in [a, b] versus mode in [a,b]. Tests cover non-canonical whitespace, list separators, redundant parentheses, and comma conjunctions.

Verification: a strict local parser smoke test passed; the remote non-MPI, non-LCAO build completed successfully; and the full parameter registry generated parameters.yaml successfully. The dedicated GoogleTest target was not run because the build node could not download GoogleTest from GitHub.

Comment thread docs/developers_guide/input_availability.md Outdated
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.

2 participants