next up previous contents
Next: Interfaces Up: The tcng language Previous: Quick start   Contents


Basic syntax

The configuration is passed through cpp for file inclusion and macro substitution. C or C++ comments are removed by cpp.

Examples:

    // this is a comment
    /* and, of
       course, this
       too */

Language tokens can be separated by whitespace, which may include newlines, i.e. the usual formatting rules of C or Perl apply.

In all cases where a string is expected, one can use a string in double quotes or a string variable.

Examples:

host "localhost"         /* quoted string */
host "ftp.kernel.org"    /* another quoted string */
host $var                /* variable */



Martin A. Brown 2003-11-06