Expand description
Boseiju - A Magic: The Gathering (MTG) oracle text parser.
The goal of this project is to parse a pure text MTG ability into an abstract syntax tree (AST) that respects the meaning of the ability.
The AST can then be easily used by other that require some comprehension of what the ability does.
This library expose two useful structures:
- the
AbilityTreewhich is the AST representation of a MTG ability. - the
Cardstructure, which holds additional informations about an MTG card, (such as name, layout, color identity) while using ability trees for ability representations.
Re-exports§
pub use ability_tree::AbilityTree;pub use card::Card;pub use lexer::lex;pub use lexer::preprocess;pub use parser::parse;