axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] Vim syntax file


From: Tim Daly
Subject: Re: [Axiom-developer] Vim syntax file
Date: Tue, 12 Nov 2013 01:01:17 -0500

Fabio,

If you want the names of all of the categories, domains, and packages
(assuming you have axiom in a directory called axiom):

cd ~/axiom/books
fgrep abbrev bookvol10.2.pamphlet
fgrep abbrev bookvol10.3.pamphlet
fgrep abbrev bookvol10.4.pamphlet
fgrep abbrev bookvol10.5.pamphlet

10.2 is all the categories, 10.3 is all the domains,
10.4 is almost all the packages, 10.5 is the new numeric packages.

In addition, when these pamphlets (which are just standard latex
files) are run through latex they generate a .idx file (latex
index file) which can contain information you might find useful.
It is trivial for me to add index entries you might want.

The chunk environment is used in the above files not only to
delimit the algebra but also to delimit test cases for each
domain and the documentation for all of the files. These are
extracted, put into their appropriate place (int/input for
tests, mnt/system/doc/spadhelp for documentation) at build time.

Chunk mode is also used in all of the src/input examples,
unit test, and regression test source file pamphlets. These
contain both the Axiom input and expected output (prefixed
by --R comment markers).

You might want to look at the above files in vim to see
if you're handling the many uses of the chunk environment.

I'm surprised that you need a vim mode for FriCAS chunks.
It was my understanding that almost all of the source files
(except the algebra for some reason) were stripped of their
literate programming. I looked at the latest repository and
it appears that only the algebra has pamphlets.

Many centuries ago there was support for "tag files" which
would allow direct indexing into the sources. It is on my
list to recover that but everything has taken a back seat
to getting Albert Rich's test cases into the computer algebra
test suite.

When you are happy with your vim file send me a copy and 
I will add it to the zips directory in the distribution.

Tim Daly






reply via email to

[Prev in Thread] Current Thread [Next in Thread]