GrammarInformation constructor

const GrammarInformation({
  1. required Token startSymbol,
  2. String? name,
  3. String? author,
  4. String? version,
  5. String? about,
  6. bool caseSensitive = true,
  7. Map<String, String> extraDefinitions = const <String, String>{},
  8. ProductionsMap productions = const <String, SubProductionsList>{},
})

Default constructor that store data for a grammar

Implementation

const GrammarInformation({
  required this.startSymbol,
  String? name,
  String? author,
  String? version,
  String? about,
  this.caseSensitive = true,
  this.extraDefinitions = const <String, String>{},
  this.productions = const <String, SubProductionsList>{},
})  : author = author ?? 'Thenafter',
      name = name ?? 'Thenafter: Loaded.grm',
      version = version ?? 'v0.0.1',
      about = about ?? 'Generated with the help of Thenafter';