Data Types and Conversions in SNOBOL4 – excerpted from …
Data Types and Conversions in SNOBOL4 – excerpted from SNOBOL4.man
| Result Type E
| X
| P
| I P R D
| S N A E E
| T T T A T S F
| R E T N R A C S I
| I G E A R B O I N
Argument | N E R M A L D O E
Type | G R N E Y E E N D
-----------+-----------------------------------
STRING | * I P C E
INTEGER | S * P
PATTERN | F *
NAME | F *
ARRAY | A * 1
TABLE | T 2 *
CODE | F *
EXPRESSION | F P *
DEFINED | F *
* The argument object is returned unchanged.
A The formal data type name "ARRAY" is returned with the
defining prototype string if it is less than 20 characters.
C CONVERT(string,"CODE) behaves exactly like CODE(string).
E Produces an unevaluated expression, that may be subsequently
used in a pattern, or evaluated with the EVAL() function.
F The formal data type name is returned.
I Numeric conversion is conditioned on magnitude and syntax
restrictions. No leading or trailing blanks are permitted.
P Occurs implicitly within a pattern match.
S A number may always be converted to its string form.
T The string "TABLE" is returned with the present size of the
table and its expansion increment: "TABLE(50,10)".
1 The array must be rectangular, with a second dimension of 2
(N rows by 2 columns). A table with N entries is created.
The table subscripts are taken from the first column of the
array; the table values are copied from the second column.
2 The table is converted to a rectangular array. Null table
entries are omitted, and there must be at least one nonnull
entry or the function fails. An N by 2 array is created,
where N is the number of nonnull table values. The first
array column contains the table subscripts, the second col-
umn contains the entry values.
Reference - 120 - Data Types and Conversion
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- note 2 string and file reading and writing
- given the inheritance hierarchy to the left write the
- 3 purdue university
- introduction to c
- data types and conversions in snobol4 excerpted from
- string lab 2 input and output using strings
- california state university sacramento
- generating c code from a simulink model
- corba example