import TsmLean.Compile.Source
import TsmLean.Core.Syntax

namespace TsmLean.Compile

open TsmLean.Core (Instr Code)

/-- Compile a source expression to TSM bytecode. -/
def compile : Source.Expr → Code
  | .intLit n => #[.push n]

end TsmLean.Compile
