1 CREATE FUNCTION function-name (
2? 
2+ ,
2 parameter-declaration
3 ) RETURNS data-type2
4? AS LOCATOR
5 (1) 

6? SPECIFIC specific-name
7 SOURCE
8 function-name
8.1? (
8.1.1? 
8.1.1+ ,
8.1.1 parameter-type
8.1.2 )
8 SPECIFIC specific-name

parameter-declaration:

1? 
1 parameter-name
2 data-type1
3? 
3 AS LOCATOR

data-type1, data-type2, data-type3:

1 built-in-type
1 distinct-type-name