Debugging Source Documentation
When compiling your language, the compiler tells you there is an Error
Common errors
1. You go directly from header level 3 (!!!) to header level 1 (!).
2. You include square brackets, e.g. from a twolc rule, say:
a:0 <=> _ b [ c|d ] ;
, and
3. You have unbalanced marking, say you intend
__word__
__word_
How to find errors
How to write documentation
The jspwiki rules are treated elsewhere, here we look at debugging.
In langs/LANG/doc, do:
make -B forrest
Forrest will tell what file is broken.
Here some advices
- Plan your documentation
- Don't include text if you do not mean it
- The double exclamation mark !! does not mean "very important",
- Don't include text if you do not mean it
- Read the resulting documentation and see whether it makes any sense.