Several tools that help a programmer produce documentation need a lexical analyzer which consumes ASCII and produces tokens that represent the various lexical elements (lexemes)in the input text.
.Data [ Design in notn_10_Lexicon ]
A token has five parts called tag, context,bracket, len, and s.
When printing a token, put a tab character between each pair of components and an eoln at the end of the token.
Structure
token---lexeme
dlex.i---dlex.o
Operations
Object'=Action
len'=0
s'=""
tag'=p
ch'?dlex.i'=dlex.i
. . . . . . . . . ( end of section dlex) <<Contents | End>>
Notes on MATHS Notation
Special characters are defined in
[ intro_characters.html ]
that also outlines the syntax of expressions and a document.
Proofs follow a natural deduction style that start with assumptions ("Let") and continue to a consequence ("Close Let") and then discard the assumptions and deduce a conclusion. Look here [ Block%20Structure in logic_2_Proofs ] for more on the structure and rules.
The notation also allows you to create a new network of variables
and constraints, and give them a name. The schema, formal system,
or an elementary piece of documentation starts with "Net" and finishes "End of Net".
For more, see
[ notn_13_Docn_Syntax.html ]
for these ways of defining and reusing pieces of logic and algebra
in your documents.
End