Text preview for : 03_Clascal_Syntax_Diagrams.pdf part of apple 03 Clascal Syntax Diagrams apple lisa toolkit_3.0 Package_2_Examples 03_Clascal_Syntax_Diagrams.pdf



Back to : 03_Clascal_Syntax_Diagram | Home

Clascal Syntax Diagrams
Preface


The following three pages define the syntax of the final
version of Clascal.
Ieiacat ,. 1 Of 3I


set-type
file-type




truetured-type-identifie'It------1


'-----class-typet----------



claas-t lass~identifie




"-,...,.ethod -interfac-----4.




class-identifier .J.
--------~ldentifler ....
~
.. I ---4".


method-interface
I eiasc.t ,. 201 I,

----4_ variable-identifier ~

~va.r.~'J::~:.:b.::.1e:..-..:~~~:...;f*e.:;.:~..;;;,~:.:~.:;;...ce~_ _.. function-call

"---.. function-method-call qualifier




...:..:=.:..::..:::..;~..;;;.;.;.:...:.:.;...-~--.. variable-reference function-call ~-~

'---- class-identifier L . - . _ - '




..:!p.~~:...:'O:.:'C.:..ed::.~=-.:'e:.....-.:..;;m.:..;:etl1_od_.-_~_ii_~J-""::::::--1'" variable-reference
.... ---------', -_.
procedure-statement .




class-identifier




~~~~~~~~--------~~identifierL---------------------r-9
class-identifier . formal-parameter-list




~~~~~~~-----------~~identifier
class-identifier




result-type
I elllC.t ,. i if i I



resu1t-type ....
-~ ordinal-type-identifier ~ -
~ real-type-identifier J ~




~
~ pointer-type-identifier.~

'" :-1 class-type-identifier}


im iementation- implementation

constarit-declaration-partt----'I

type-declaration-part 1 - - - - - - ' 1

variable-declaration-part..-.--,