t3x.org
/
t3x
/
t3x-manual
/
index2.html
T3X
-
A Minimum Procedural Language
Version 8.1.5, Online Edition
Copyright(C) 1996-2004
Nils M Holm
Table of Contents (
full
)
1. Introduction
1.1 The History of T3X
1.2 The T3X Family Tree
2. A Tour through the T3X Language
2.1 The Input Alphabet
2.2 Comments
2.3 Naming Conventions
2.4 Data Declarations
2.4.1 Atomic Variables
2.4.2 Constants
2.4.3 Vectors
2.4.4 Structures
2.5 Factors
2.5.1 Signed and Unsigned Values
2.6 Expressions
2.6.1 Procedure Calls and Subscripts
2.6.2 Unary Operators
2.6.3 Term Operators
2.6.4 Sum Operators
2.6.5 Bit Operators
2.6.6 Relational Operators
2.6.7 Conjunctions and Disjunctions
2.6.8 Conditional Expressions
2.6.9 Constant Expressions
2.6.10 Order of Evaluation
2.7 Statements
2.7.1 Assignments
2.7.2 Procedure Calls
2.7.3 Conditional Statements
2.7.4 Loop Statements
2.7.5 Branch Statements
2.7.6 Compound Statements
2.7.7 Local Symbols
2.7.8 Empty Statements
2.8 Procedures
2.8.1 Recursive Procedures
2.8.2 Mutually Recursive Procedures
2.8.3 Variadic Procedures
2.9 The T3X Object Model
2.9.1 Object Oriented Programming
2.9.2 Classes
2.9.3 Objects
2.9.4 Modules and Class Dependencies
2.9.5 Methods and Messages
2.9.6 Class Constants
2.10 Interface Classes
2.10.1 Interface Declarations
2.10.2 Calling Interface Procedures
2.10.3 A Sample Interface
2.11 Scoping Rules
2.11.1 Scoping Conflicts
2.12 Type Checking
2.13 Meta Commands
2.14 The Main Program
3. The Runtime Environment
3.1 Meta Information
3.1.1 Object Names
3.1.2 Argument Descriptions
3.2 T3X -- Core Routines
3.2.1 T3X Class Usage
3.2.2 BPW
3.2.3 CLOSE
3.2.4 CVALIST
3.2.5 GETARG
3.2.6 GETENV
3.2.7 MEMCOMP
3.2.8 MEMCOPY
3.2.9 MEMFILL
3.2.10 MEMSCAN
3.2.11 NEWLINE
3.2.12 OPEN
3.2.13 READ
3.2.14 REMOVE
3.2.15 RENAME
3.2.16 SEEK
3.2.17 WRITE
3.3 CHAR -- Character Functions
3.3.1 CHAR Class Usage
3.3.2 ALPHA
3.3.3 ASCII
3.3.4 CNTRL
3.3.5 DIGIT
3.3.6 INIT
3.3.7 LCASE
3.3.8 LOWER
3.3.9 MAP
3.3.10 SPACE
3.3.11 UCASE
3.3.12 UPPER
3.3.13 VALUE
3.3.14 XDIGIT
3.4 IOSTREAM -- I/O-Streams
3.4.1 IOSTREAM Class Usage
3.4.2 CLOSE
3.4.3 CREATE
3.4.4 EOF
3.4.5 ERROR
3.4.6 FLUSH
3.4.7 MOVE
3.4.8 OPEN
3.4.9 RDCH
3.4.10 READ
3.4.11 READS
3.4.12 RESET
3.4.13 WRCH
3.4.14 WRITE
3.4.15 WRITES
3.5 MEMORY -- Dynamic Memory Management
3.5.1 MEMORY Class Usage
3.5.2 ALLOC
3.5.3 FREE
3.5.4 INIT
3.5.5 WALK
3.6 STRING -- String Functions
3.6.1 STRING Class Usage
3.6.2 COMP
3.6.3 COPY
3.6.4 FIND
3.6.5 FORMAT
3.6.6 ICOMP
3.6.7 LENGTH
3.6.8 NUMTOSTR
3.6.9 PARSE
3.6.10 RFIND
3.6.11 RSCAN
3.6.12 SCAN
3.6.13 STRTONUM
3.6.14 XLATE
3.7 TCODE -- Tcode Instruction Set
3.7.1 TCODE Class Usage
3.7.2 TCODE Instructions
3.7.3 Tcode Instruction Format
3.8 RTCODE -- Tcode Instruction Lookup
3.8.1 RTCODE Class Usage
3.8.2 RT.LOOKUP
3.9 UTIL -- Utilities
3.9.1 UTIL Class Usage
3.9.2 BUFLEN
3.9.3 PRINTF
3.9.4 SWRITEF
3.9.5 WRITEF
3.10 SYSTEM -- System Interface
3.10.1 SYSTEM Class Usage
3.10.2 INIT
3.10.3 CHDIR
3.10.4 CLOSEDIR
3.10.5 DUP
3.10.6 DUP2
3.10.7 FINI
3.10.8 FORK
3.10.9 GETDIR
3.10.10 KILL
3.10.11 MKDIR
3.10.12 OPENDIR
3.10.13 PIPE
3.10.14 RDCHK
3.10.15 READDIR
3.10.16 RMDIR
3.10.17 SPAWN
3.10.18 STAT
3.10.19 TIME
3.10.20 WAIT
3.11 TTYCTL -- Video Terminal Control
3.11.1 TTYCTL Class Usage
3.11.2 INIT
3.11.3 CLEAR
3.11.4 CLREOL
3.11.5 COLOR
3.11.6 COLORS
3.11.7 COLUMNS
3.11.8 FINI
3.11.9 LINES
3.11.10 MODE
3.11.11 MOVE
3.11.12 QUERY
3.11.13 READC
3.11.14 RSCROLL
3.11.15 SCROLL
3.11.16 WRITEC
3.11.17 WRITES
4. The Virtual Tcode Machine
4.1 The Architecture
4.2 Calling Conventions
4.3 Instance Contexts
4.4 Tcode Instruction Format
4.5 Instruction Cycles
4.6 Startup Conditions
4.7 Symbols Used to Describe Tcode
4.8 Declarations
4.9 Context Manipulation
4.10 Stack Manipulation
4.11 Arithmetic Instructions
4.12 Predicates
4.13 Load and Store Instructions
4.14 Flow Control
4.15 External Linkage
4.16 Source Level Debugging
4.17 Meta Information
4.17.1 Generated Hints
4.18 Loading Tcode
4.19 Resolving Interface References
5. Formal Definitions
5.1 Syntax Description Language
5.2 Formal Syntax
6. Quick Reference
6.1 Language Overview
6.1.1 Declarations
6.1.2 Statements
6.1.3 Operators
6.1.4 Meta Commands
6.2 Runtime Support Routines
6.2.1 T3X
6.2.2 Char
6.2.3 IOStream
6.2.4 Memory
6.2.5 String
6.2.6 Tcode
6.2.7 RTcode
6.2.8 Util
6.2.9 System
6.2.10 TTYCtl
6.3 Miscellaneous
6.3.1 Escape Sequences
6.3.2 Tcode Instruction Set
6.3.3 ASCII Table
7. Appendix
7.1 List of Figures
8. License