Reorganize the language guide.

- Rename "Expressions" -> "Method Calls".
- Organize "Types" and "Language" into a single linear narrative.
- Mobile-specific navigation to handle the longer guide.
- Rename "Fibers" -> "Concurrency".
- Get rid of duplicate stuff about signatures in "Classes".
- Add next/prev links to each page in the guide.
- Move "Contributing" and "Community" up to the top level.
- Move the precendence table to a separate "Grammar" page.
- Lots of other little stuff.
This commit is contained in:
Bob Nystrom
2015-11-07 11:09:04 -08:00
parent bbd6b827b5
commit 931d9ca4d3
25 changed files with 751 additions and 615 deletions
+6 -3
View File
@@ -1,5 +1,5 @@
^title Syntax
^category language
^category guide
Wren's syntax is designed to be familiar to people coming from C-like languages
while being a bit simpler and more streamlined.
@@ -37,8 +37,8 @@ even if the code already contains block comments.
## Reserved words
Some people like to see all of the reserved words in a programming language in
one lump. If you're one of those folks, here you go:
One way to get a quick feel for a language's style is to see what words it
reserves. Here's what Wren has:
:::wren
break class construct else false for foreign if import
@@ -124,3 +124,6 @@ same as doing:
{
return "single expression"
}
<a class="right" href="values.html">Values &rarr;</a>
<a href="getting-started.html">&larr; Getting Started</a>