OrgGrammarDefinition class

Top-level grammar definition

This describes the overall structure of an Org document:

  • Leading content
  • One or more sections
    • Headline
    • Content
    • One or more sections
      • etc.

The structure and the content turned out to be hard to define together, so the content rules are defined separately in OrgContentGrammarDefinition.

Implementers

Constructors

OrgGrammarDefinition()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build<T>({Function? start, List<Object> arguments = const []}) → Parser<T>
Builds a composite parser from this definition.
inherited
buildFrom<T>(Parser<T> parser) → Parser<T>
Builds a composite parser starting at the specified production.
inherited
content() → Parser
document() → Parser
headline() → Parser
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
priority() → Parser
section() → Parser
stars() → Parser
start() → Parser
The starting production of this definition.
tag() → Parser
tags() → Parser
title() → Parser
todoKeyword() → Parser
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited