1# Copyright (C) 2020-2022 The opuntiaOS Project Authors.
2# + Contributed by Nikita Melekhin <nimelehin@gmail.com>
3#
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7from Parser.Parser import Parser
8from Generator.IRManager import IRManager
9from Generator.BinWriter import BinWriter
10import argparse
11
12class DevTreeCompiler():
13
14 @staticmethod
15 def compile(input_f, output_f):
16 parser = Parser(input_f)
17 irmng = IRManager(parser)
18 binw = BinWriter(irmng, output_f)
19 binw.process()