jpmag
806b8d8878
Merge pull request #567 from biojppm/fix/566_top_anchor
...
Fix emitter regression: anchors in top-level containers
2026-01-07 11:17:08 +00:00
Joao Paulo Magalhaes
57e5affb0d
re #566 : fix emit regression in top level container anchors
2026-01-07 09:23:38 +00:00
Joao Paulo Magalhaes
cceb52f1e9
re #566 : add tests reproducing the problem
2026-01-07 09:23:37 +00:00
jpmag
9209722c6a
Merge pull request #550 from biojppm/flow_ml
...
Implement FLOW_ML style
2026-01-03 11:27:45 +00:00
Joao Paulo Magalhaes
f8ee5fbe1f
Add roundtrip engine tests, fix minor problems
2026-01-02 19:02:39 +00:00
Joao Paulo Magalhaes
71ffaf89ef
Declare estimate_tree_capacity() at top of file
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
0a99c6d968
ParseEngine: scan of plain scalars in flow mode now stops at scalar end
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
f88e591174
LineContents: remove member stripped
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
2e19c005f6
Prepare emitter for comments
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
6e7b1c5da7
Fix failing test in armv4/armv5 -O3
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
ca353d26fa
Dbg prints: fix char sign problem in armv4/armv5
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
9a77f9d7ae
Emitter: improve coverage
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
07d02b925e
Emitter: internal cleanup
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
6833a4b570
Updating changelog and quickstart
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
8bf48686b1
Add default ParserOptions argument to temp-parser overloads
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
2f695333fa
Add EmitOptions::indent_flow_ml()
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
3a750e8a3b
Add ParserOptions::detect_flow_ml()
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
27b56e59e5
Implement FLOW_ML style: update tests
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
145d624440
Implement FLOW_ML style detection while parsing
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
39fb4de56a
Implement FLOW_ML style and refactor emit facilities.
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
bf7ec6978d
Minor cleanup in Tree and NodeRef/ConstNodeRef
2025-12-31 18:23:44 +00:00
Joao Paulo Magalhaes
66c2af21d9
ParserState: rename FLOW and BLOCK states to avoid conflict with NodeType
2025-12-31 18:23:44 +00:00
jpmag
d820acb432
Merge pull request #503 from biojppm/add_visit_error
...
Improve error model, callbacks
2025-12-30 12:53:51 +00:00
Joao Paulo Magalhaes
62f058c946
Fix optimization problem in GCC 8 -O3
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
0c1d68617b
refactor error API: update benchmarks
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
10848239d1
refactor error API: use the new exceptions in the swig file
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
aca054d79b
refactor error API: add format_exc()
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
a02ebda1f2
refactor error API: show failed check conditions
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
be1b8543ea
refactor error API: update docs
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
60520dd2ba
refactor error API: update CI files
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
209c487e1d
refactor error API: update swig file
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
fb226d85b6
refactor error API: update samples
2025-12-28 19:17:25 +00:00
Joao Paulo Magalhaes
e08f69fcf6
refactor error API: update tests
2025-12-28 19:17:22 +00:00
Joao Paulo Magalhaes
471d18c4e0
refactor error API: update tools
2025-12-28 18:58:08 +00:00
Joao Paulo Magalhaes
d084cfddbc
refactor error API: library
2025-12-28 18:58:05 +00:00
jpmag
f59489dfee
Merge pull request #560 from biojppm/feat/python_arena
...
python: expose tree arena
2025-12-28 18:36:30 +00:00
Joao Paulo Magalhaes
5e7596d97f
Improve python API:
...
- expose `to_arena()`
- improve type handling in Tree methods accepting scalars
2025-12-28 13:13:57 +00:00
Joao Paulo Magalhaes
5bdb9eaebf
Merge branch 'origin/fix/564_relocate_arena' to master
2025-12-26 15:20:55 +00:00
Joao Paulo Magalhaes
0fa2eb10e4
fix: Tree::relocate() triggers assertions with zero-length strings
...
... when they string are placed at the beginning or end of the arena
2025-12-20 15:46:34 +00:00
jpmag
0852909b77
Merge pull request #561 from biojppm/fix/559_utf8_bom_indentation
...
Fix parse error from BOM indentation
2025-12-20 15:39:58 +00:00
Joao Paulo Magalhaes
836180f90e
Byte order mark: account for indentation
2025-12-19 18:47:23 +00:00
Joao Paulo Magalhaes
7bbce2aa40
ci: macos-13 was deprecated
2025-12-17 20:04:17 +00:00
jpmag
1313e3e70c
Merge pull request #563 from biojppm/fix/562_noderef_cend
...
NodeRef: fix bug in cend()
2025-12-17 15:51:21 +00:00
Joao Paulo Magalhaes
a572d084a4
NodeRef: fix bug in cend()
2025-12-17 12:15:23 +00:00
Joao Paulo Magalhaes
ed7f655be3
NodeRef: Add tests showing bug in cend()
2025-12-17 12:11:22 +00:00
Joao Paulo Magalhaes
564a51477b
update c4core
2025-12-17 11:48:29 +00:00
jpmag
c4d1fca70a
Merge pull request #557 from biojppm/fix/556_python_tree
...
Improve behaviour of tree creation and Tree::root_id().
2025-12-03 08:52:49 +00:00
jpmag
d2a6dd7f4f
Merge pull request #558 from kenichiice/fix-doxgen-links
2025-12-03 08:37:05 +00:00
OGAWA KenIchi
367f9945d9
Fix incorrect doxygen links
2025-12-03 15:59:23 +09:00
Joao Paulo Magalhaes
0febd0fa65
Improve behaviour of tree creation and Tree::root_id().
...
`Tree` is now non-empty by default, and `Tree::root_id()` will no longer modify the tree when it is empty. To create an empty tree now it is necessary to use the capacity constructor with a capacity of zero:
```c++
// default-constructed tree is now non-empty
Tree tree;
assert(!tree.empty()); // MODIFIED! was empty on previous version
id_type root = tree.root_id(); // OK. default-constructed tree is now non-empty
// to create an empty tree:
Tree tree(0); // pass capacity of zero
assert(tree.empty()); // as expected
// but watchout, this is no longer possible:
//id_type root = tree.root_id(); // ERROR: cannot get root of empty tree.
```
This changeset also enables the python library to call `root_id()` on a default-constructed tree
re #556
2025-12-02 21:03:48 +00:00