## CtplToken CtplToken — Language token |

## Synopsis

    #include <ctpl/ctpl.h>

                        CtplToken;
                        CtplTokenExpr;
    void                ctpl_token_free                     (CtplToken *token);
    void                ctpl_token_expr_free                (CtplTokenExpr *token);

## Description

Represents a CTPL language token.

Tokens are created by the lexers, CtplLexer and CtplLexerExpr.

A CtplToken is freed with `ctpl_token_free()`, and a CtplTokenExpr is freed with `ctpl_token_expr_free()`.

## Details

### CtplToken

    typedef struct _CtplToken CtplToken;

The CtplToken opaque structure.

### CtplTokenExpr

    typedef struct _CtplTokenExpr CtplTokenExpr;

Represents an expression token.

### ctpl_token_free ()

    void                ctpl_token_free                     (CtplToken *token);

Frees all memory used by a CtplToken.

`token` : | A CtplToken to free

### ctpl_token_expr_free ()

    void                ctpl_token_expr_free                (CtplTokenExpr *token);

Frees all memory used by a CtplTokenExpr.

`token` : | A CtplTokenExpr to free