Grammar class final

Represents a complete ABNF grammar starting from an entry rule.

Implemented types

Constructors

Grammar(String name, Rule entryRule, {String? description})

Properties

description String?
An optional human-readable description of this element.
final
element Rule
no setter
entryRule Rule
The entry point Rule for parsing.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The unique name of this grammar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Rule
Alias for entryRule.
no setter

Methods

accept(ElementVisitor visitor) → void
Accepts an ElementVisitor for traversing the grammar tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String source) ParseResult
Attempts to parse the source string matching this element.
override
toString() String
A string representation of this object.
override

Operators

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