Expand description
A graph representation for computing tree diffs.
Structsยง
- Vertex ๐A vertex in a directed acyclic graph that represents a diff.
Enumsยง
- Edge ๐An edge in our graph, with an associated
cost. - Entered
Delimiter ๐Tracks entering syntax List nodes.
Functionsยง
- allocate_
if_ ๐new - compute_
neighbours ๐Compute the neighbours ofv. - Does this node look like punctuation?
- pop_
all_ ๐parents Pop as many parents oflhs_nodeandrhs_nodeas possible. Return the new syntax nodes and parents. - populate_
change_ ๐map - push_
both_ ๐delimiters - push_
lhs_ ๐delimiter - push_
rhs_ ๐delimiter - try_
pop_ ๐both - try_
pop_ ๐lhs - try_
pop_ ๐rhs