Next: , Previous: , Up: AT commands   [Contents][Index]


5.5.22 ‘@q’: Turn off module and line info locally

The command-line option ‘-#’ (see -#) turns off comments about module and line numbers globally, for the entire code. However, in some cases one wants to turn that off in just a small block of code. One important example arises in FORTRAN. Consider

@
@a
      x = @<Some action@>

@
@<Some action@>=
y + z

This example will tangle to something like

      x = 
C* 1: *
*line 20 "test.web"
      y + z
C* :1 *
*line 5 "test.web"

Unfortunately, the information comments have created invalid code that will not compile.

The ‘@q’ command solves this problem by turning off or on the information comments locally. ‘@q0’ turns them off; ‘@q1’ turns them on. Thus, if one rewrites the above example as

@
@a
@q0
      x = @<Some action@>
@q1

it will tangle to

      x = y + z

as one desires.

For another use of the ‘@q’ command, see ATo.