summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-16Merge pull request #17 from jestabro/reference-treeJohn Estabrook
T5194: add support for reference tree
2023-05-10T5194: drop keep_order fieldJohn Estabrook
This is not applicable under the current node sorting; drop for now.
2023-05-10T5194: add load and render function for bindingJohn Estabrook
2023-05-10T5194: ignore syntaxVersion elementsJohn Estabrook
syntaxVersion elements are post-processed in the Python reference dict
2023-05-10T5194: override json serialization for node_type variantJohn Estabrook
2023-05-10T5194: add default_valueJohn Estabrook
2023-05-10T5194: add completion_helpJohn Estabrook
2023-05-10T5194: allow for empty element string and child order in valueHelpJohn Estabrook
One needs to handle the pathological cases of an empty element string and arbitrary order of child elements. Neither are prohibited, and the former has a use case (for now).
2023-05-10T5194: add render_jsonJohn Estabrook
2023-05-10T5194: insert_maybe as node names exist in multiple interface-def filesJohn Estabrook
2023-05-10T5194: add priority elementJohn Estabrook
2023-05-10T5194: use empty string as name of root to avoid conflictJohn Estabrook
cf. 4df07f8e for details
2023-05-10T5194: import load_interface_definitions from vyconfJohn Estabrook
2023-05-10T5194: remove unused variables and flagJohn Estabrook
2023-05-10T5194: add util functions for reference treeJohn Estabrook
2023-05-10T5194: update dependenciesJohn Estabrook
2023-05-10T5194: import reference_tree from vyconfJohn Estabrook
2023-04-26Merge pull request #16 from jestabro/compare-bugDaniil Baturin
T5185: drop assumption in case of a sequence of 0's
2023-04-26T5185: drop assumption in case of a sequence of 0'sJohn Estabrook
In the original implementation, it was mistakenly assumed that strings of digits of differing lengths would not have equal value, but strings of 0's are a counterexample.
2023-03-28Merge pull request #15 from jestabro/identityJohn Estabrook
T5089: support for unit test of config_diff
2023-03-23T5089: add optional arg to order values on render_configJohn Estabrook
For unit tests of identity: tree = union of subtrees, one needs a consistent ordering of values. Add an optional argument to order values in render_config.
2023-03-23T5089: order nodes on configtree parsing from stringJohn Estabrook
This is a conservative application of lexical_numeric ordering for configtree: order nodes on instantiation in 'from_string'
2023-03-23T5089: add tree_union for use in unit test.John Estabrook
2023-03-23T4235: drop unneeded graft functionJohn Estabrook
This was a general use function that is uneeded in this simple case.
2023-03-23T5087: clone with lexical insertion of nodes and ordering of valuesJohn Estabrook
2023-03-23T5087: add optional arg for lexical insertion of nodesJohn Estabrook
2023-03-23Merge pull request #14 from jestabro/lexical_numericJohn Estabrook
T5088: add lexical_numeric_compare function
2023-03-14T5088: add dune support for lexical_numeric_compareJohn Estabrook
2023-03-14T5088: add lexical_numeric_compare functionJohn Estabrook
2023-02-11Merge pull request #13 from jestabro/udiffJohn Estabrook
T4991: add function show_diff for unified diff of configs
2023-02-10T4991: add function show_diff for unified diff of configsJohn Estabrook
2023-01-27Merge pull request #12 from jestabro/insert_errorDaniil Baturin
T4961: add name of offending node in exception Insert_error of string
2023-01-27T4961: add name of offending node in exception Insert_error of stringJohn Estabrook
2022-09-01Revert "Merge pull request #11 from jestabro/tag-node-name-whitespace"John Estabrook
This reverts commit 97d11bf2bda65c7001ad687fd088a896161fdb0d, reversing changes made to 40f7d2af65a2358bb37661121f1752abf4f099fc.
2022-08-19Merge pull request #11 from jestabro/tag-node-name-whitespaceDaniil Baturin
T4628: render tag node names containing whitespace in quotes
2022-08-19T4628: render tag node names containing whitespace in quotesJohn Estabrook
2022-06-29Merge pull request #9 from jestabro/tree-root-nameJohn Estabrook
T4491: use empty string for name of config_tree root node
2022-06-28T4491: use empty string for name of config_tree root nodeJohn Estabrook
The practice of using "root" for the internal name of the root node collides with actual nodes named "root", due to a utility function that checks 'if root' by name. Use empty string as name of root node, as no actual node will match.
2022-04-29Merge pull request #8 from jestabro/comments-on-delete-commandsJohn Estabrook
T4235: add comments on producing delete commands
2022-04-27T4235: add comments on producing delete commandsJohn Estabrook
2022-04-27Merge pull request #6 from dmbaturin/masterJohn Estabrook
T4334: make the lexer reentrant by passing state around instead of using a shared mutable reference
2022-04-21T4334: make the lexer reentrant by passing state aroundDaniil Baturin
instead of using a shared mutable reference
2022-03-01Merge pull request #4 from jestabro/delete-treeDaniil Baturin
T4235: distinguish between sub(-tract) tree and delete tree
2022-03-01Merge pull request #3 from jestabro/subtreeDaniil Baturin
T4235: simplify return value of diff_tree
2022-02-28T4235: add function 'trim_tree' to produce tree for delete commandsJohn Estabrook
2022-02-25T4235: change type/variable names for clarity; add is_empty for listJohn Estabrook
2022-02-25T4235: keep full paths in subtract treeJohn Estabrook
In the intial implementation, the delete tree only kept the first node of a path not present in the RHS of the comparison; this was done as a convenience for generating 'trimmed' delete commands for the CLI. However, this loses needed information, and breaks the symmetry of results: LHS, RHS -> del, inter, add RHS, LHS -> add, inter, del Keep full paths in delete tree and rename trees.del to trees.sub(-tract). A separate function 'trim_tree' will be provided to produce a CLI-appopriate delete tree and commands.
2022-02-23T4235: add utility function get_subtreeJohn Estabrook
2022-02-23T4235: function diff_tree now returns single tree containing diffsJohn Estabrook
2022-02-09Merge pull request #2 from jestabro/config-diffDaniil Baturin
T4235: add config tree diff algorithm