3.12 Pragma: Indentation
3.12 Pragma: Indentation
When FunnelWeb expands a macro, it can do so in two ways.
First it can treat the text it is processing as a one dimensional
Tutorial
stream of text, and merely insert the body of the macro in place
of the macro call. Second, it can treat the text of the macro as a
Developer
two dimensional object and indent each line of the macro body
by the amount that the macro call itself was indented. Consider
Reference
the following macros.
1 Introduction
2 Interface
@$@@{@
i=1;
3 Scanner
while (i<=N)
4 Parser
@
5 Analyser
endwhile
6 Tangle
@}
7 Weave
8 Shell
@$@@{@
9 Commands
a[i]:=0;
10 Glossary
i:=i+1;@}
11 References
Under the regime of
no indentation
the loop structure macro
expands to:
SEARCH
i=1;
while (i<=N)
a[i]:=0;
i:=i+1;
endwhile
Under the regime of
blank indentation
the loop structure
macro expands to:
i=1;
while (i<=N)
a[i]:=0;
i:=i+1;
endwhile
The indentation pragma determines which of these two regimes
will be used to expand the macros when constructing the
product files. The syntax of the pragma is:
http://www.ross.net/funnelweb/reference/scanner_prag_ind.html (1 of 2) [3/3/2000 10:47:50 PM]
Actions web hosting footer
Our web partners:
Web Hosting PHP
Jsp Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Java Web Hosting
Cheap Web Hosting
Java Hosting
Cheapest Hosting
Quality Web Templates
Best Web Templates
Web Design Templates
Java Web Hosting
Cheap Hosting
Cheap Web Hosting
Jsp Web Hosting
Tomcat Web Hosting
Quality Web Hosting
Best Web Hosting
Java Web Hosting
Actionswebhosting.com Business web hosting
division of Vision Web Hosting Inc. All rights reserved.