1 # API Notation Syntax for Atom
3 This is a grammar for api notation, a simple notation I've been using for
4 annotating module APIs in specs and other documents.
14 Open a `.api` file, or set it as your syntax.
16 ## API Notation Reference
18 The most recent reference as of now is in this [gist][api-reference], so
19 check that to be sure. But here's a reproduction of the notation.
22 NameOfClass.WithPossibleNamespace
25 ~> listened events (socket)
26 +> listened events (class/module)
27 -> listened events (instance)
28 <~ dispatched events (socket)
29 <+ dispatched events(class/module)
30 <- dispatched events (instance)
40 Recommended order: class first, then sockets, then instance. Internally:
41 Properties, events, methods.
43 // Anything after two forward slashes is a comment
46 ## How does it look like?
50 ![Like this.][api-example]
52 [api-reference]: https://gist.github.com/rbdr/4694c46fcec131468e34
53 [api-example]: https://i.imgur.com/63TyFMe.png