logo astma
AUTHORING
  <?XML!>  print

AsTMa= Language Definition

Prev Up Next
v1.3, 2006-12-17, Revision 1.2

7 Comments

It is up to an AsTMa= processor how to process comments. When converting into XTM, the processor MAY create XML comment sections. When directly loading it into storage, any comment MAY also be discarded.

comment → { '#' string eol }

AsTMa= supports global and local comments:

global comment section

A global comment section is introduced by a # at the very beginning of a line (column 1). Any following text (i.e. starting with the 2nd column) is regarded to be comment text. Any directly subsequent line(s) which also begin(s) with a # is(are) accumulated into the comment. A global comment section is terminated by the begin of some other top level section or an empty line.

Example: The following comment contains 3 lines, the '#'s themselves are discarded.

# warning from the information secretary
# Linux is a communist conspiration
# against the free Microsoft world

local comment section

A local comment is introduced by a # NOT at the beginning of the line AND following at least one white-space character (changed starting with v1.0Rev1.5). Local comments include ALL white-space characters before the '#' (changed starting with v1.0Rev1.5) and reach until the end of the current line.

Copyright © 2003 Robert Barta