ModErn Text Analysis
META Enumerates Textual Applications
|
Transforms trees by removing any unary X -> X rules. More...
#include <unary_chain_remover.h>
Public Member Functions | |
std::unique_ptr< node > | operator() (const leaf_node &) override |
std::unique_ptr< node > | operator() (const internal_node &) override |
Additional Inherited Members | |
Public Types inherited from meta::parser::const_visitor< std::unique_ptr< node > > | |
using | result_type = std::unique_ptr< node > |
The result of running the visitor over the tree. | |
Transforms trees by removing any unary X -> X rules.
These may arise from filtering out trace/empty nodes, for example, and may cause problems in parsing if they persist.
|
overridevirtual |
Implements meta::parser::tree_transformer.
|
overridevirtual |
Implements meta::parser::tree_transformer.