background image
C
ATS
(
TM
) P
ROGRAMMING
 L
ANGUAGE
 O
VERVIEW
As revised 2006.08.23
Bionic Buffalo Tech Note #84 
Security: 
Unrestricted
Bionic Buffalo Tech Note #84
Cats(tm) Programming Language Overview 
Abstract 
This Tech Note briefly describes some of the major features of the Cats
TM
 programming language.   
Publisher's information and notes are at the end of this document.
 
Contents
Abstract 
..................................................................................................................................................1
Contents
..................................................................................................................................................1
1. 
Philosophy and Motivation 
...............................................................................................................2
2. 
Design Principles 
..............................................................................................................................2
3. 
Additions to the Language
.................................................................................................................3
3.1. 
New Keywords and Syntax 
........................................................................................................3
3.2. 
New Types and Their Use
...........................................................................................................3
3.3. 
Regular Expressions and String Operations 
...............................................................................6
3.3.1. Pattern Matching ................................................................................................................6
3.3.2. Substitution .........................................................................................................................6
3.3.3. Transliteration .....................................................................................................................7
3.3.4. Splitting ..............................................................................................................................7
3.3.5. Compiling Regular Expressions .........................................................................................7
3.4. 
Other New Expression and Syntax Features 
..............................................................................7
3.4.1. Ranges ................................................................................................................................7
3.4.2. Anonymous Lists ................................................................................................................8
3.4.3. Reverse ...............................................................................................................................8
3.4.4. Sparse Increment and Decrement .......................................................................................8
3.4.5. Iteration Over Lists .............................................................................................................9
3.5. 
Other Features 
............................................................................................................................9
4. 
Garbage Collection 
...........................................................................................................................9
5. 
Generated C Code 
.............................................................................................................................9
6. 
Subset Pre­Compiler 
.......................................................................................................................10
7. 
Future Directions 
............................................................................................................................10
Bibliography and References 
.............................................................................................................11
Copyright 2006 Bionic Buffalo. All rights reserved.
File tn0084; Modified 2006­08­30 08:00:17
http://www.tatanka.com/doc/technote/index.html
E­mail: 
query@tatanka.com
Page 1 of 12