call method

Takes a source input of rune or codeUnit and the parsed result in a GrammarInformation object

Implementation

GrammarInformation call(InputIterator source) {
  final lexicalAnalyzer = BNFLexical();
  final tokens = lexicalAnalyzer.start(source);
  final syntacticAnalyzer = BNFSyntactic();
  syntacticAnalyzer.start(tokens);
  return _getElements(
    syntacticAnalyzer.productions,
    syntacticAnalyzer.extraDefinitions,
  );
}