compileAST method

Uint8List compileAST(
  1. ASTNode node, {
  2. bool endOfExec = false,
})

Implementation

Uint8List compileAST(ASTNode node, {bool endOfExec = false}) {
  final bytesBuilder = BytesBuilder();
  Uint8List bytes;
  bytes = node.accept(this);
  bytesBuilder.add(bytes);
  if (endOfExec) {
    bytesBuilder.addByte(HTOpCode.endOfExec);
  }
  return bytesBuilder.toBytes();
}