# Copyright (C) 2020-2022 The opuntiaOS Project Authors. # + Contributed by Nikita Melekhin # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from Parser.Parser import Parser from Generator.IRManager import IRManager from Generator.BinWriter import BinWriter import argparse class DevTreeCompiler(): @staticmethod def compile(input_f, output_f): parser = Parser(input_f) irmng = IRManager(parser) binw = BinWriter(irmng, output_f) binw.process()