Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sno(1) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

awk(1)




sno(1) sno(1)
NAME sno - runs the SNOBOL interpreter SYNOPSIS sno [file]... ARGUMENTS file Specifies the file to be interpreted by the sno command. DESCRIPTION sno is a SNOBOL compiler and interpreter (with slight differences). The sno command obtains input from the concatenation of the named files and the standard input. All input through a statement containing the label end is considered program and is compiled. The rest is available to syspit. The sno command differs from SNOBOL in the following ways: There are no unanchored searches. To get the same effect: a**b Performs unanchored search for b. a*x*b=xc Specifies an unanchored assignment. There is no back referencing. x=abc a*x*x Specifies an unanchored search for abc. Function declaration is done at compile time by the use of the (nonunique) label define. Execution of a function call begins at the statement following the define. Functions cannot be defined at run time, and the use of the name define is preempted. There is no provision for automatic variables other than parameters. Here are a few examples: define f( ) define f(a, b, c) All labels except define (even end) must have a nonempty statement. Labels, functions, and variables must all have distinct names. In particular, the nonempty statement on end cannot merely name a label. January 1992 1



sno(1) sno(1)
If start is a label in the program, program execution will start there. If not, execution begins with the first executable statement; define is not an executable statement. There are no built-in functions. Parentheses for arithmetic are not needed. Normal precedence applies. Because of this, the arithmetic operators / and * must be set off by spaces. The right side of assignments must be nonempty. Either ' or " " " " " " may be used for literal quotes. The pseudo-variable sysppt is not available. FILES /usr/bin/sno Executable file SEE ALSO awk(1) SNOBOL, a String Manipulation Language, by D. J. Farber, R. E. Griswold, and I. P. Polonsky, JACM 11 (1964), pp. 21-30 2 January 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026