| 1 |
Syntax: bf(%scanner-matched-text-function) tt(function-call) nl() |
| 2 |
|
| 3 |
The tt(%scanner-matched-text-function) directive defines the scanner function |
| 4 |
that must be called to obtain the text matching the most recently returned |
| 5 |
token. By default this is tt(d_scanner.matched()). |
| 6 |
|
| 7 |
A complete function call expression should be provided (including a scanner |
| 8 |
object, if applicable). This option overrules the tt(d_scanner.matched()) call |
| 9 |
used by default when the tt(%scanner) directive is specified. Example: |
| 10 |
verb( |
| 11 |
%scanner-matched-text-function myScanner.matchedText() |
| 12 |
) |
| 13 |
If the function call expression contains white space then the |
| 14 |
tt(function-call) specification must be surrounded by double quotes (tt(")). |
| 15 |
|
| 16 |
Note that an expression is expected, not an expression em(statement): do not |
| 17 |
include a final semicolon in the specification. |