dedukti-1.0.0: Dedukti/CodeGen.hs
-- |
-- Copyright : © 2009 CNRS - École Polytechnique - INRIA
-- License : GPL
--
-- Interface for all code generators.
module Dedukti.CodeGen (CodeGen(..)) where
import Dedukti.Core
import Dedukti.Module
import qualified Data.Text.Lazy as T
class CodeGen o where
data Bundle o
-- | Emit code corresponding to an individual rule set.
emit :: RuleSet (Id o) (A o) -> o
coalesce :: [o] -> Bundle o
-- | Produce the byte sequence to write to a file, given the code
-- for all the rule sets.
serialize :: MName -- ^ The module name
-> [MName] -- ^ Dependencies
-> Bundle o -- ^ Code
-> T.Text