Skip to main content

native_construct_tree

Function native_construct_tree 

Source
pub fn native_construct_tree(id: &str, source: &str) -> Option<ConstructTree>
Expand description

The construct tree of source under the native grammar id.

It keeps the nodes of the parse tree whose kind is a rule of the grammar, without trivia, literals and token kinds that are not rules. None when the grammar does not accept the input.