diff options
Diffstat (limited to 'src/lib/Codec/Pesto')
-rw-r--r-- | src/lib/Codec/Pesto/Graph.lhs | 8 | ||||
-rw-r--r-- | src/lib/Codec/Pesto/Lint.lhs | 4 | ||||
-rw-r--r-- | src/lib/Codec/Pesto/Parse.lhs | 10 |
3 files changed, 12 insertions, 10 deletions
diff --git a/src/lib/Codec/Pesto/Graph.lhs b/src/lib/Codec/Pesto/Graph.lhs index 511adca..27dd967 100644 --- a/src/lib/Codec/Pesto/Graph.lhs +++ b/src/lib/Codec/Pesto/Graph.lhs @@ -86,7 +86,7 @@ appear on the shopping list. The same happens for for tools. However they are not part of the final product, but used in the process of making it. For instance they do not appear on the -shopping list. `Time is a tool <time-is-a-tool_>`_. +shopping list. `Time is a tool <#time-is-a-tool>`_. > f ctx (i, Tool _) = addToStack ctx i @@ -112,7 +112,7 @@ adding optional or equivalent ingredients to a recipe (i.e. margarine or butter) References are similar to ingredients. They are used to add items from a workspace labeled with Result or Alternative. More on that `in the next section -<references_>`_. +<#references>`_. > f ctx (i, Reference _) = addToStack ctx i @@ -189,6 +189,8 @@ Unknown directives or instructions are never connected to other nodes. > , cmpGraph "invalid" [] > ] +.. _references: + References ++++++++++ @@ -233,7 +235,7 @@ References can use amounts and units. There are a few cases that do not make sense here (like loops or multiple results with the same name). They are permitted at this stage, but rejected -`later <reject-loops_>`_. +`later <#reject-loops>`_. > , cmpGraphRef "*foobar |foobar >foobar" [(1, 0), (2, 0)] > , cmpGraphRef "|foobar *foobar >foobar *foobar" [(0, 1), (0, 3), (2, 1), (2, 3)] diff --git a/src/lib/Codec/Pesto/Lint.lhs b/src/lib/Codec/Pesto/Lint.lhs index bc99e14..919eeef 100644 --- a/src/lib/Codec/Pesto/Lint.lhs +++ b/src/lib/Codec/Pesto/Lint.lhs @@ -1,3 +1,5 @@ +.. _linting: + Linting ------- @@ -286,7 +288,7 @@ well… References ++++++++++ -All references must be resolved. An `earlier check <resultsused_>`_ makes sure +All references must be resolved. An `earlier check <#resultsused>`_ makes sure all results and alternatives are referenced at some point. > referencesResolved nodes edges = foldl f [] nodes diff --git a/src/lib/Codec/Pesto/Parse.lhs b/src/lib/Codec/Pesto/Parse.lhs index 518b866..ef9a908 100644 --- a/src/lib/Codec/Pesto/Parse.lhs +++ b/src/lib/Codec/Pesto/Parse.lhs @@ -33,11 +33,10 @@ Language syntax > > import Codec.Pesto.Serialize (serialize) -Pesto parses UTF-8_ encoded input data consisting of space-delimited -instructions. Every character within the Unicode whitespace class is -considered a space. +Pesto parses `UTF-8 <https://tools.ietf.org/html/rfc3629>`_ encoded input data +consisting of space-delimited instructions. Every character within the Unicode +whitespace class is considered a space. -.. _UTF-8: https://tools.ietf.org/html/rfc3629 .. _spaces1: > stream = ((,) <$> getPosition <*> instruction) `sepEndBy` spaces1 @@ -251,8 +250,7 @@ Missing units must not be ommited. The version with underscore should be prefere > ] Units and objects are just strings. However units should be limited to -`well-known metric units <well-known-units_>`_ and `some guidelines -<objects-and-annotations_>`_ apply to Objects as well. +`well-known metric units <#well-known-units>`_. > type Unit = String > unit = qstr |