parseNotation function

NotationResult parseNotation(
  1. String text, {
  2. Catalog? catalog,
  3. NotationOptions options = const NotationOptions(),
  4. String? definitions,
})

text in the compact notation as a layout document. Never throws: what cannot be read is reported and skipped.

A word text defines (define Word … at the margin) holds for the whole text, before or after its uses (docs/design/20-defined-words.md section 7). definitions is more text whose define blocks hold here too, as the text's own (an answer's other screens): what is wrong in them is said where they are read, not here.

Implementation

NotationResult parseNotation(String text, {Catalog? catalog, NotationOptions options = const NotationOptions(), String? definitions}) =>
    _Parser(catalog ?? Catalog.current, options).parse(text, definitions: definitions);