This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Instance-Method-Declaration Syntax

By: a guest on Oct 12th, 2012  |  syntax: None  |  size: 0.71 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data