Struct parse_tree::TopDownBuilder[][src]

pub struct TopDownBuilder { /* fields omitted */ }

A builder for creating parse trees by a top-down walk over the tree nodes. Each start_internal call must be paired with a finish_internal call. Nodes created within a pair of start_internal / finish_internal calls become children of the internal node.

Methods

impl TopDownBuilder
[src]

Create a new builder.

Completes the building process and yields a ParseTree. Panics if there's unmatchedstart_internal` calls.

Creates a new leaf node.

Start a new internal node.

Complete an internal node. Panics if there's no matching start_internal call.

Trait Implementations

impl Debug for TopDownBuilder
[src]

Formats the value using the given formatter. Read more

impl Default for TopDownBuilder
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations