summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2022-02-08configtree: T4235: render delete commandsJohn Estabrook
2022-02-08configtree: T4235: implementation of config tree diffJohn Estabrook
2022-01-06Merge pull request #1 from jestabro/no-utf8-escapeDaniil Baturin
Use a modification of String.escaped to leave UTF-8 bytes unescaped
2022-01-04Use a modification of String.escaped to leave UTF-8 bytes unescapedJohn Estabrook
2019-10-27Merge branch 'master' of github.com:vyos/vyos1x-configvyos/1.2.6vyos/1.2.5vyos/1.2.4cruxDaniil Baturin
2019-10-27Remove batteries from dependencies and update version.Daniil Baturin
2019-10-27Expose the JSON AST export function.Daniil Baturin
2019-10-27Add a "simple" JSON renderer.Daniil Baturin
2019-07-29Remove batteries from dependencies.Daniil Baturin
2019-06-30Change syntax error wording.Daniil Baturin
2019-06-30T1479: switch to Menhir's incremental API and add support for reporting ↵Daniil Baturin
error line numbers.
2019-06-30T1478: Improved lexing error reporting, including proper support for single ↵Daniil Baturin
quoted strings.
2019-06-30Initial import of libraries from Vyconf and old libvyosconfig.Daniil Baturin