Enum commands::parser::Node [] [src]

pub enum Node {
    Command(CommandNode),
    Parameter(ParameterNode),
    ParameterName(ParameterNameNode),
    Root(RootNode),
}

Enumeration of node types used to have vectors of Node and so on.

Variants

Node variant wrapping a CommandNode.

Node variant wrapping a ParameterNode.

Node variant wrapping a ParameterNameNode.

Node variant wrapping a RootNode.

Methods

impl Node
[src]

The node in the tree of commands and parameters used in the parser.

This trait defines the core operations which a node must support.

Get the TreeNode data for a given Node.

Get or calculate successors of this node.

Trait Implementations

impl PartialEq for Node
[src]

Nodes are equal based on pointer equality.

This method tests for !=.

impl NodeOps for Node
[src]

Accept this node with the given token as data. Read more

Can this node be accepted in the current parser state? By default, a node can be accepted when it hasn't been seen yet. Read more

Given a node and an optional token, provide the completion options. Read more

By default, a node matches a token when the name of the node starts with the token. Read more