beautypg.com

4 file-including directives, 1 inline directive, 2 include directive – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 12: File-including directives, Inline directive, Include directive, 4file-including directives

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

4

4

File-Including Directives

To include a file in a generation parsing stream, use the %inline or %include directive.

4.1 Inline Directive

The %inline directive instructs the script parser to insert the content of the named file into the
parsing stream when the parser sees this directive, even if the file is already inserted.

Examples

%inline

"SomeInc1.inc"

# Includes the 'SomeInc1.inc' file.

%inline

"SomeInc1.inc"

# Includes the 'SomeInc1.inc' file again.

4.2 Include Directive

The %include directive instructs the script parser to insert the content of the named file into the
parsing stream only ONCE, the first time the parser sees the directive with the specified file
name.

Examples

%include

"SomeInc1.inc"

# Includes the 'SomeInc1.inc' file.

%include

"SomeInc1.inc"

# Does nothing.