⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sno.6

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 6
字号:
.th SNO VI 2/9/73.sh NAMEsno \*- Snobol interpreter.sh SYNOPSIS.bd sno[ file ].sh DESCRIPTION.it Snois a Snobol III (with slight differences)compiler and interpreter..it Snoobtains input from theconcatenation of.it fileand the standard input.All input through a statementcontaining the label `end' isconsidered program and is compiled.The rest is available to `syspit'..s3.it Snodiffers from Snobol III in the following ways..s3There are no unanchored searches.To get the same effect:.s3	a ** b		unanchored search for b.br	a *x* b = x c	unanchored assignment.s3There is no back referencing..s3	x = "abc".br	a *x* x		is an unanchored search for `abc'.s3.i0Function declaration is different.The function declaration isdone at compile time by the use of the label `define'.Thus there is no ability to define functions at run timeand the use of the name `define' is preempted.There is also no provision for automatic variablesother than the parameters.For example:.s3.lp +8 8.bd "define	f( )".s3.i0or.s3.lp +8 8.bd "define	f(a,b,c)".s3.i0All labels except `define' (even `end')must have a non-empty statement..s3If `start' is a label in the program,program execution will start there.If not, execution begins with the firstexecutable statement.`define' is not an executable statement..s3There are no builtin functions..s3Parentheses for arithmetic are not needed.Normal precedence applies.Because of this, the arithmeticoperators `/' and `*'must be set off by space..s3The right side of assignmentsmust be non-empty..s3Either \*a or " may be used for literal quotes..s3The pseudo-variable `sysppt' is not available..sh "SEE ALSO"Snobol III manual.(JACM;Vol. 11 No. 1; Jan 1964; pp 21).sh BUGS

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -