Method Declarations

Name

Description

Example

proc

procedure

(proc (modifs) name (parms) locals (block))

func

function

(func (modifs) type name (parms) locals (block))

cons

constructor

(cons (modifs) class (parms) locals (block))

tokens

modifs

modifier list

public, private, final, static

name

name of method

 

type

function return type

 

class

name of class

 

parms

parameter list

int n; char ch; boolean flag

locals

local variable list

see above

block

statement list

stmt1; stmt2; stmt3;