Expand description
Library for parsing and manipulating gabc code. The intended use case is to parse an entire
gabc file into a GabcFile
struct with GabcFile::new()
. The GABCParser
struct
provides access to the parse tree itself for lower-level processing.
Documentation for gabc is available at http://gregorio-project.github.io/gabc/index.html.
Structs§
- GABC
Parser - Parser that recognizes gabc, generated from
gabc.pest
. - Gabc
File - Struct representing an entire gabc file.
- Note
- Struct representing a gabc note.
- Syllable
- Struct representing a gabc syllable with text and music, e.g. “Po(eh/hi)”
Enums§
Functions§
- debug_
print - Pretty string representation of a
Pairs
parse tree. Useful for directly debugging the output ofGABCParser::parse()
orparse_gabc()
. - parse_
gabc - Wrapper for GABCParser::parse() that prints a helpful error and exits the process if parsing fails (a friendly alternative to panicking).