Hets - the Heterogeneous Tool Set

Copyright(c) Klaus Luettich and Uni Bremen 2002-2004
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilitynon-portable (imports Logic.Grothendieck)
Safe HaskellNone

ATC.Sml_cats

Description

This module exports functions, that can convert an sml-CATS ATerm into the Haskell abstract syntax tree. So it contains all the necessary instances of ATermConvertible and a heuristic function that calculates the new lists of Pos out of Region tuples.

the templates for the instances are automatically derived by DrIFT. But there were made many hand written changes.

todo: - p_flag from pos-TERM is not considered jet!

Synopsis

Documentation

class ATermConvertibleSML t

Minimal complete definition

from_sml_ShATerm

Instances

ATermConvertibleSML Bool 
ATermConvertibleSML Char 
ATermConvertibleSML Int 
ATermConvertibleSML Integer 
ATermConvertibleSML Id 
ATermConvertibleSML Token 
ATermConvertibleSML Annotation 
ATermConvertibleSML SYMB_OR_MAP 
ATermConvertibleSML TYPE 
ATermConvertibleSML SYMB 
ATermConvertibleSML SYMB_KIND 
ATermConvertibleSML SYMB_MAP_ITEMS 
ATermConvertibleSML SYMB_ITEMS 
ATermConvertibleSML OP_SYMB 
ATermConvertibleSML PRED_SYMB 
ATermConvertibleSML QUANTIFIER 
ATermConvertibleSML VAR_DECL 
ATermConvertibleSML COMPONENTS 
ATermConvertibleSML ALTERNATIVE 
ATermConvertibleSML DATATYPE_DECL 
ATermConvertibleSML PRED_HEAD 
ATermConvertibleSML PRED_TYPE 
ATermConvertibleSML OP_HEAD 
ATermConvertibleSML OP_TYPE 
ATermConvertibleSML VersionNumber 
ATermConvertibleSML LibName 
ATermConvertibleSML FIT_ARG 
ATermConvertibleSML RESTRICTION 
ATermConvertibleSML RENAMING 
ATermConvertibleSML SPEC 
ATermConvertibleSML FIT_ARG_UNIT 
ATermConvertibleSML UNIT_TERM 
ATermConvertibleSML UNIT_BINDING 
ATermConvertibleSML UNIT_EXPRESSION 
ATermConvertibleSML UNIT_REF 
ATermConvertibleSML REF_SPEC 
ATermConvertibleSML UNIT_SPEC 
ATermConvertibleSML UNIT_DECL_DEFN 
ATermConvertibleSML ARCH_SPEC 
ATermConvertibleSML ItemNameMap 
ATermConvertibleSML VIEW_TYPE 
ATermConvertibleSML IMPORTED 
ATermConvertibleSML PARAMS 
ATermConvertibleSML GENERICITY 
ATermConvertibleSML LIB_ITEM 
ATermConvertibleSML LIB_DEFN 
ATermConvertibleSML a => ATermConvertibleSML [a] 
ATermConvertibleSML a => ATermConvertibleSML (Annoted a) 
ATermConvertibleSML (TERM a) 
ATermConvertibleSML (FORMULA a) 
ATermConvertibleSML (PRED_ITEM a) 
ATermConvertibleSML (OP_ATTR a) 
ATermConvertibleSML (OP_ITEM a) 
ATermConvertibleSML (SORT_ITEM a) 
(ATermConvertibleSML a, ATermConvertibleSML b) => ATermConvertibleSML (a, b) 
(Ord a, ATermConvertibleSML a, ATermConvertibleSML b) => ATermConvertibleSML (Map a b) 
ATermConvertibleSML (SIG_ITEMS a b) 
(ATermConvertibleSML a, ATermConvertibleSML b, ATermConvertibleSML c) => ATermConvertibleSML (a, b, c) 
ATermConvertibleSML (BASIC_ITEMS a b c) 
ATermConvertibleSML (BASIC_SPEC a b c) 
(ATermConvertibleSML a, ATermConvertibleSML b, ATermConvertibleSML c, ATermConvertibleSML d) => ATermConvertibleSML (a, b, c, d) 

read_sml_ATerm :: FilePath -> IO LIB_DEFN

cats creates latin1 files