DEL Syntax
Notes for NLS Users
-
All statements in this branch which are not part of the compiler must end with a period.
-
To compile the DEL compiler:
-
Set this pattern for the content analyzer ( (symbol for up arrow)P1 SE(P1) <-"-;). The pointer "del" is on the first character of pattern.
-
Jump to the first statement of the compiler. The pointer "c" is on this statement.
-
And output the compiler to file ( '/A-DEL' ). The pointer "f" is on the name of the file for the compiler output -
-
Programs
Syntax
-meta file (k=100.m=300,n=20,s=900)
file = mesdecl $declaration $procedure "FINISH";
procedure =
procname (
(
type "FUNCTION" /
"PROCEDURE" ) .id (type .id / -empty)) /
"CO-ROUTINE") ' /
$declaration labeledst $(labeledst ';) "endp.";
labeledst = ((left arrow symbol).id ': / .empty) statement;
type = "INTEGER" / "REAL" ;
procname = .id;
-
Functions are differentiated from procedures to aid compilers in better code production and run time checks.
-
Functions return values.
-
Procedures do not return values.
-
-
Co-routines do not have names or arguments. Their initial envocation points are given the pipe declaration.
-
It is not clear just how global declarations are to be??