mirror of
https://github.com/PDP-10/its.git
synced 2026-05-05 15:44:10 +00:00
CLU reference manual.
Written in R.
This commit is contained in:
38
doc/clu/gram.refman
Normal file
38
doc/clu/gram.refman
Normal file
@@ -0,0 +1,38 @@
|
||||
.am table_of_contents
|
||||
. rs
|
||||
. bp
|
||||
. sp
|
||||
3Detailed Description*
|
||||
. sp
|
||||
. em
|
||||
.ec e epsilon
|
||||
.sr syntax_pdx I
|
||||
.chapter "Notation"
|
||||
.para 1
|
||||
We use an extended BNF grammar to define the syntax.
|
||||
The general form of a production is:
|
||||
.show
|
||||
.def nonterminal alternative
|
||||
.or alternative
|
||||
.or ```...
|
||||
.or alternative
|
||||
.eshow
|
||||
.para 1
|
||||
The following extensions are used:
|
||||
.nr fff fheight/4
|
||||
.show
|
||||
a , etc stab(1)stands for stab(2)lparen!a vbar a , a vbar a , a , a vbar (fff!m)...rparen
|
||||
lcurly!arcurlytab(1)stands fortab(2)lparen\e vbar a vbar a a vbar a a a vbar (fff!m)...rparen
|
||||
lbkt!arbkttab(1)stands fortab(2)lparen\e vbar arparen
|
||||
.eshow
|
||||
.para 1
|
||||
All semicolons are optional in CLU,
|
||||
but for simplicity they appear in the syntax without enclosing meta-brackets.
|
||||
Nonterminal symbols appear in normal face.
|
||||
Reserved words appear in bold face.
|
||||
All other terminal symbols are non-alphabetic,
|
||||
and appear in normal face.
|
||||
.para
|
||||
Full productions are not always shown in the body of this document;
|
||||
often alternatives are presented and explained individually.
|
||||
Appendix`syntax_pdx contains the complete syntax.
|
||||
Reference in New Issue
Block a user