GrammarInformation class

Data class that holds all information parsed from a grammar

Constructors

GrammarInformation({required Token startSymbol, String? name, String? author, String? version, String? about, bool caseSensitive = true, Map<String, String> extraDefinitions = const <String, String>{}, ProductionsMap productions = const <String, SubProductionsList>{}})
Default constructor that store data for a grammar
const

Properties

about String
An about that tells general information about the grammar
final
author String
The grammar authors
final
caseSensitive bool
Shows if the grammar is case sensitive
final
extraDefinitions Map<String, String>
Custom extra definitions
final
hashCode int
The hash code for this object.
no setterinherited
name String
The grammar name
final
productions ProductionsMap
All productions generated by a grammar and how it produces all of them
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startSymbol → Token
The start symbol for a grammar
final
version String
The grammar version
final

Methods

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