~rbdr/api-notation-atom

API Notation syntax grammar for atom
9fa88eda — Rubén Beltran del Río 3 years ago
Update README.md
41730bdc — Ben Beltran 9 years ago
Prepare 1.0.2 release
3ff6002a — Ben Beltran 9 years ago
Removes weird inclusion

clone

read-only
https://git.sr.ht/~rbdr/api-notation-atom
read/write
git@git.sr.ht:~rbdr/api-notation-atom

You can also use your local clone with git send-email.

#API Notation Syntax for Atom

This is a grammar for api notation, a simple notation I've been using for annotating module APIs in specs and other documents.

#Installing

#From Command Line

apm install api-notation

#From GUI

#Open the Package Manager from Palette Manager
  1. Press ⌘⇧P on OSX or ⌃⇧P on Windows/Linux to open the palette manager
  2. Look for Install Packages and Themes
#Open the Package Manager from Preferences
  1. Go to Atom -> Preferences menu
  2. Go to Install
#Install it
  1. Search for api-notation in the search bar
  2. Click Install

#Usage

Open a .api file, or set it as your syntax.

#API Notation Reference

The most recent reference as of now is in this text file, so check that to be sure. But here's a reproduction of the notation.

NameOfClass.WithPossibleNamespace
   + class property
   - instance property
  ~> listened events (socket)
  +> listened events (class/module)
  -> listened events (instance)
  <~ dispatched events (socket)
  <+ dispatched events(class/module)
  <- dispatched events (instance)
  :: class method
   # instance method

Other symbols
  => returns
->() callback return
[xx] optional
<xx> data type

Recommended order: class first, then sockets, then instance. Internally:
Properties, events, methods.

// Anything after two forward slashes is a comment

#How does it look like?

Like this.

Like this.