FluentParser class

Recursive-descent parser for Fluent Syntax 1.0.

Junk recovery: on a parse error inside a top-level entry, the offending span is preserved as a Junk entry and parsing resumes at the next entry boundary, so a single bad message never breaks an otherwise-valid resource.

Constructors

FluentParser({FluentParserOptions options = const FluentParserOptions()})
Creates a parser configured by options.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
withSpans bool
True when the parser records Spans on every node.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String source) Resource
Parse the full source into a Resource.
toString() String
A string representation of this object.
inherited

Operators

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