ParserBuilder<I, O> class
abstract
The ParserBuilder is the main class for declaring parser builders.
- Implementers
- And
- AnyChar
- Char
- Choice
- Choice2
- Choice3
- Choice4
- Choice5
- Choice6
- Choice7
- Eof
- Expected
- Malformed
- Many
- Many1
- Many1Count
- ManyCount
- ManyMN
- Mapped
- Marked
- Memoize
- Named
- NoneOf
- Not
- OneOf
- Opt
- Peek
- PeekChar
- Recognize
- Ref
- Satisfy
- SatisfyMixin
- SeparatedList
- SeparatedList1
- SequenceBase
- SkipWhile
- SkipWhile1
- SkipWhileMN
- SmartChoice
- SmartChoiceEx
- StringChars
- SwitchTags
- Tag
- Tags
- TakeUntil
- TakeWhile
- TakeWhile1
- TakeWhileMN
- Value
- Verify
Constructors
- ParserBuilder.new()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOptional → bool
-
Returns
true
if the generated parser is optional; otherwise returnsfalse
.no setter - isSequential → bool
-
no setter
- name → String?
-
Returns the name of the parser.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context, bool hasResult) → BuildResult - Builds a parser and returns the build result.
-
buildBody(
BuildContext context, bool hasResult) → BuildBodyResult - Builds a parser function body and returns the source code of the function body.
-
checkIsNotOptional(
ParserBuilder< I, Object?> p) → void -
getCombinedParsers(
) → Iterable< (ParserBuilder< I, Object?> , bool?)> -
getResultType(
) → String - Returns a textual representation of the parser result type.
-
getStartingCharacters(
) → Iterable< (int, int)> - Returns the starting characters of the parser.
-
getStartingErrors(
) → Iterable< String> - Returns the starting errors of the parser.
-
isNullableResultType(
) → bool -
Returns
true
if the parser result type is nullable; otherwise returnsfalse
. -
isNullableType<
T> () → bool -
Returns
true
if typeT
is nullable; otherwise returnsfalse
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited