Add formatting css and reorganize

This commit is contained in:
flaviut 2014-05-31 21:16:18 -04:00
commit 5747e5fa90
21 changed files with 308 additions and 199 deletions

View file

@ -7,7 +7,7 @@ Nimrod also supports case statements, which are like switches in other languages
* case statements, like most things, are actually expressions
* It is required that every possible case be covered
~~~ Nimrod
``` nimrod
case "charlie"
of "alfa":
echo "A"
@ -38,11 +38,11 @@ proc positiveOrNegative(num: int): string =
"impossible"
echo positiveOrNegative(-1)
~~~
```
~~~
``` console
$ nimrod c -r ./case_stmts.nim
C
Consonant
negative
~~~
```