Permalink
Browse files

cosmetic changes

  • Loading branch information...
sa2ajj authored and ericbmerritt committed Sep 3, 2012
1 parent 39b185a commit ef820c9007eff1a74fd22f7be8988fa398c90509
Showing with 19 additions and 28 deletions.
  1. +8 −10 doc/language.rst
  2. +11 −12 doc/standard-library.rst
  3. +0 −6 doc/style.rst
View
@@ -11,31 +11,30 @@ let*
(let* (val val-expr ...) expr ...)
-
try*
^^^^
.. code-block:: clojure
(try* expr (catch (error-class error-type) catch-expr ...))
-
case
^^^^
.. code-block:: clojure
- (case expr (pattern <optional-guard> expr ...) ...)
-
-
+ (case expr
+ (pattern <optional-guard> expr ...)
+ ...)
receive
^^^^^^^
.. code-block:: clojure
- (receive <optional-after> (pattern <optional-guard> expr ...) ...)
-
+ (receive <optional-after>
+ (pattern <optional-guard> expr ...)
+ ...)
do
^^
@@ -44,7 +43,6 @@ do
(do expr ...)
-
binary
^^^^^^
@@ -613,8 +611,8 @@ transparency.
Functions
---------
-&rest Arguments to Functions
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+`&rest` Arguments to Functions
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Rest arguments in a language like Joxa, where arity is basically part
of the namespace, take a bit of thought to get your mind
View
@@ -4,8 +4,8 @@ Standard Library
Core
====
-!=
---
+`!=`
+----
This is a 'not equal' operator for Joxa. It is basically equivelent to
@@ -105,8 +105,8 @@ Example
-+
---
+`+`
+---
This is the multi-argument version of `erlang/+`. It does a simple
arithmetic addition for an unlimited number of arguments.
@@ -120,8 +120,8 @@ Example
28
--
--
+`-`
+---
This is the multi-argument version of `erlang/-`. It does a simple
arithmetic subtraction for an unlimited number of arguments.
@@ -205,7 +205,7 @@ is then evaluated.
Examples
^^^^^^^^
-.. code-block:: none
+.. code-block:: clojure
joxa-is> (joxa-core/if :true 1 2)
1
@@ -245,7 +245,7 @@ the forms are not evaluated, and the when form returns `:ok`.
Examples
^^^^^^^^
-.. code-block:: none
+.. code-block:: clojure
joxa-is> (joxa-core/when :true :hello)
hello
@@ -264,6 +264,7 @@ unless
Arguments and Values
^^^^^^^^^^^^^^^^^^^^
+
test-form
a form.
@@ -287,7 +288,7 @@ yields `:false`, the forms are not evaluated, and the unless form returns
Examples
^^^^^^^^
-.. code-block:: none
+.. code-block:: clojure
joxa-is> (joxa-core/unless :true :hello)
ok
@@ -370,7 +371,7 @@ name and the value.
Examples
^^^^^^^^
-.. code-block:: none
+.. code-block:: clojure
joxa-is> (joxa-core/define :true :hello)
ok
@@ -382,8 +383,6 @@ Examples
123
-
-
Lists
=====
View
@@ -104,17 +104,11 @@ Unacceptable
(* x (factorial (- x 1
)
-
)
-
)
-
)
-
)
-
-
Acceptable
""""""""""
.. code-block:: clojure

0 comments on commit ef820c9

Please sign in to comment.