summaryrefslogtreecommitdiff
path: root/src/curly_parser.mly
AgeCommit message (Collapse)Author
2017-01-14Break some overly long lines in the curly config parser.Daniil Baturin
2017-01-14Use Menhir's build-in boption() for #INACTIVE and #EPHEMERALDaniil Baturin
instead of home-grown equivalents.
2017-01-13T249: add support for inactive and ephemeral nodes to the curly config parser.Daniil Baturin
2017-01-12T245: improve handling of nodes with duplicate names.Daniil Baturin
Two tag nodes with the same name ("ethernet eth0 {...} ethernet eth0 {...}") is an error. Two leaf nodes with the same name, however, are not an error. Values of the next nodes are merged into the first one, while all other data (comment and inactive and ephemeral properties are inherited from the first node. This mimics the old syntax of multi nodes, so a person who uses the old syntax out of habit in a handwritten config will get the result they expect.
2017-01-10De-duplicate top level nodes during parsing too.Daniil Baturin
2017-01-10Allow valueless nodes in the curly parser.Daniil Baturin
2017-01-09Not quite T245 but related: trim comments and allow more characters in ↵Daniil Baturin
identifiers.
2017-01-09T245: add support for the old style tag node syntax ("ethernet eth0")Daniil Baturin
as opposed to "ethernet { eth0". Note that "new syntax" for tag nodes, i.e. not using any special syntax for them is automatically support too, configs will load correctly since node name/value validation only occurs after parsing is complete.
2017-01-05Initial implementation of the curly config parser.Daniil Baturin