Paraiso-0.0.0.0: a code generator for partial differential equations solvers.

Language.Paraiso.Generator

Description

a general code generator definition.

Synopsis

Documentation

class Generator gen whereSource

The definition for code generator.

Associated Types

data Strategy gen :: *Source

The data that is daughter of gen; describes the code generation strategy.

Methods

generateSource

Arguments

:: (Vector v, C g, C (v g), Ord (v g), Symbolable gen g) 
=> gen

The code generator.

-> POM v g (Strategy gen)

The POM sourcecode, annotated with Strategy.

-> FilePath

The directory name under which the files are to be generated.

-> IO ()

The act of generation.

Code generation.

Instances

class Generator gen => Symbolable gen a whereSource

The translation of Haskell symbols to other languages.

Methods

symbolFSource

Arguments

:: Failure StringException f 
=> gen

The Generator.

-> a

A Haskell object to be translated.

-> f String

The translation result which may fail. | Pure version, which may emit runtime error.

Failure handling version of symbol translation.

symbol :: gen -> a -> StringSource