Skip to content

Commit

Permalink
feat: change MIR representation to protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
lumasepa committed Jan 8, 2025
1 parent d8a0021 commit 2e58e49
Show file tree
Hide file tree
Showing 23 changed files with 1,545 additions and 918 deletions.
388 changes: 195 additions & 193 deletions nada_dsl/ast_util.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nada_dsl/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class CompilerOutput:
"""Compiler Output"""

mir: str
mir: bytes


@add_timer(timer_name="nada_dsl.compile.compile")
Expand Down Expand Up @@ -82,7 +82,7 @@ def print_output(out: CompilerOutput):
"""
output_json = {
"result": "Success",
"mir": out.mir,
"mir": list(out.mir),
}
print(json.dumps(output_json))

Expand Down
Loading

0 comments on commit 2e58e49

Please sign in to comment.