Advertisement
Guest User

Instance-Method-Declaration Syntax

a guest
Oct 12th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. The syntax of an instance-method-declaration is:
  2. '-' [ method-type ] method-selector ';'
  3.  
  4. The syntax of a method-type is:
  5. '(' type-name ')'
  6.  
  7. The syntax of a type-name is the one given by the ISO standards.
  8.  
  9. The syntax of a method-selector is:
  10. unary-selector
  11. keyword-selector [ ',' '...' ]
  12. keyword-selector [ ',' parameter-type-list ]
  13.  
  14. The syntax of a unary-selector is
  15. selector
  16. with the syntax:
  17. identifier
  18. as defined by the ISO standards.
  19.  
  20. The syntax of a keyword-selector is:
  21. keyword-declarator
  22. keyword-selector keyword-declarator
  23. where keyword-declarator has the syntax:
  24. ':' [ method-type ] identifier
  25. selector ':' [ [method-type] method-type ] identifier
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement