From 53c0012a83a0131daf5c72729ddc3acd433f671d Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Sun, 8 Dec 2013 12:49:21 +0100 Subject: Fixes link to manual in bold section. Nested inline markup is not possible at the moment, see http://stackoverflow.com/a/9645684/172690. Maybe this would be a useful extension to have in nimrod's custom rst engine? --- doc/tut2.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/tut2.txt b/doc/tut2.txt index f66a5135d..fc0c0630e 100644 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -16,9 +16,9 @@ Introduction This document is a tutorial for the advanced constructs of the *Nimrod* -programming language. **Note that this document is somewhat obsolete as -the `manual `_ contains many more examples of the advanced -language features.** +programming language. **Note that this document is somewhat obsolete as the** +`manual `_ **contains many more examples of the advanced language +features.** Pragmas -- cgit 1.4.1-2-gfad0 From 8526d2936517fec9db9608607cea971bcd804428 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Sun, 8 Dec 2013 12:52:54 +0100 Subject: Adds missing ``s`` to sligthly odd sentence. --- doc/tut2.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/tut2.txt b/doc/tut2.txt index fc0c0630e..82be57000 100644 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -948,7 +948,7 @@ Generating AST by hand To generate an AST we would need to intimately know the structures used by the Nimrod compiler exposed in the `macros module `_, which at first -look seems a daunting task. But we can use a helper shortcut the ``dumpTree`` +look seems a daunting task. But we can use as helper shortcut the ``dumpTree`` macro, which is used as a statement macro instead of an expression macro. Since we know that we want to generate a bunch of ``const`` symbols we can create the following source file and compile it to see what the compiler -- cgit 1.4.1-2-gfad0 From 410fcf7f52ec34f8ebe18c089f52a1024924c8ce Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Sun, 8 Dec 2013 18:33:19 +0100 Subject: Fixes strutils reference in macro tutorial. --- doc/tut2.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/tut2.txt b/doc/tut2.txt index 82be57000..b35f71527 100644 --- a/doc/tut2.txt +++ b/doc/tut2.txt @@ -852,7 +852,7 @@ to be included along the program containing the license information:: The ``readCfgAtRuntime`` proc will open the given filename and return a ``TTable`` from the `tables module `_. The parsing of the file is done (without much care for handling invalid data or corner cases) using the -``split`` proc from the `strutils module `_. There are many +``splitLines`` proc from the `strutils module `_. There are many things which can fail; mind the purpose is explaining how to make this run at compile time, not how to properly implement a DRM scheme. -- cgit 1.4.1-2-gfad0