ContentsIndex
Translator
Portabilityportable
Stabilityvery experimental
Maintaineregallego@babel.ls.fi.upm.es
Description

Last modified: 20 Oct 2004, 16:31

Some utilities for compilation management.

Synopsis
type TransError = [Char]
type TransResult k c = Either TransError (Module k c)
class Translator s k c where
translate :: s -> TransResult k c
translateFile :: Translator String a b => String -> IO (TransResult a b)
Documentation
type TransError = [Char]
type TransResult k c = Either TransError (Module k c)
class Translator s k c where

Translator class is intended for no step by step translations, such as lexers, parsers or language transformers.

For a class modelling an execution, see Engine.Rewritable

Methods
translate :: s -> TransResult k c
show/hide Instances
translateFile
:: Translator String a b
=> StringFilename
-> IO (TransResult a b)
Helper function to compile from a given file.
Produced by Haddock version 0.8