parse

Function parse 

Source
pub fn parse(tokens: &[Token]) -> Result<AbilityTree, ParserError>
Expand description

Entry point of the parsing algorithm.

Attempts to parse a sequence of nodes into an ability tree, using the Earley parsing algorithm.

The algorithm reference can be found here: https://en.wikipedia.org/wiki/Earley_parser The algorithm used for the implementation was: https://fr.wikipedia.org/wiki/Analyse_Earley (cocorico)