|
|
last edited 6 years ago by test1 |
1 2 3 | ||
Editor: kratt6
Time: 2007/12/28 15:14:49 GMT-8 |
||
Note: |
added:
From kratt6 Fri Dec 28 15:14:48 -0800 2007
From: kratt6
Date: Fri, 28 Dec 2007 15:14:48 -0800
Subject:
Message-ID: <20071228151448-0800@axiom-wiki.newsynthesis.org>
Category: Aldor Library Compiler => Axiom Aldor Interface
For example: The following category has a dependent type (the signature of m depends on T):
#include "axiom"
MyCat(T: Type,m: (T, T) -> T): Category == with { d:((T, T)->T)->(T->T); default { d(f:(T, T)->T):(T->T) == (t:T):T +-> f(t, t) } }
Compiling FriCAS source code from file /var/zope2/var/LatexWiki/mycat.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra Use the system command )set compiler args to change these options. Compiling Lisp source code from file ./mycat.lsp Issuing )library command for mycat Reading /var/zope2/var/LatexWiki/mycat.asy MyCat is now explicitly exposed in frame initial MyCat will be automatically loaded when needed from /var/zope2/var/LatexWiki/mycat
Compilation of the following domain fails. It has a dependent type involving the category.
#include "axiom" #library MyCat "mycat.ao"; import from MyCat; MyDom: with { c:(%,%) -> %; coerce: Integer -> %; MyCat(%, c) } == add { import from Integer; Rep == Integer;
coerce(x:Integer):% == per(x); c(a: %,b: %):% == per(rep(a)+rep(b)); }
Compiling FriCAS source code from file /var/zope2/var/LatexWiki/6062601343572286651-25px002.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra Use the system command )set compiler args to change these options. Compiler bug...Bug: gen0Syme: syme unallocated by gen0Vars The )library system command was not called after compilation.
with the error message:
Compiler bug...Bug: gen0Syme: syme unallocated by gen0Vars