3.5 Inserting Arbitrary Characters into the Text
quick names can be used to great effect:
@! Unix "Make" requires that productions
@! commence with tab characters.
@! So we define a macro with a quick name
@! as a tab character.
@! And use it in our productions.
@#Tprog.o < prog.c
@#Ta.out < prog.o
Warning: If you insert a Unix newline character (decimal 10) into the text,
FunnelWeb will treat this as an end of line sequence regardless of what the
character sequence for end of line is on the machine upon which it is running.
Unix EOL is FunnelWeb s internal representation for end of line. Thus, in the
current version of FunnelWeb, inserting character 10 into the text is impossible
unless this also happens to be the character used by the operating system to mark
the end of line.
Copyright Ross N. Williams 1992,1999. All rights reserved.
http://www.ross.net/funnelweb/reference/scanner_arbitrary.html (2 of 2) [3/3/2000 10:47:24 PM]