buildNeededImports method

  1. @override
void buildNeededImports(
  1. StringBuffer buffer
)

Build all imports that the generated code will need

Implementation

@override
void buildNeededImports(StringBuffer buffer) {
  buffer.writeln('from collections import Callable\n');
  buffer.writeln('from models.business.sythatic_node import SynthaticNode');
  buffer.writeln(
    'from models.errors.synthatic_errors import SynthaticParseErrors',
  );
  buffer.writeln('from util.data_structure.queue import Queue');
  buffer.writeln('from util.productions import EProduction');
  buffer.writeln('from util.token_types import TokenTypes\n');
}