Add missing 'possibleDefaultTokens.length' in TokenIdType docs.

This commit is contained in:
Andrej Mitrovic 2014-02-10 18:09:05 +01:00
parent a5d7bf0956
commit 0bf31d5c8b
1 changed files with 4 additions and 3 deletions

View File

@ -105,9 +105,10 @@ module stdx.lexer;
/** /**
* Template for determining the type used for a token type. Selects the smallest * Template for determining the type used for a token type. Selects the smallest
* unsigned integral type that is able to hold the value * unsigned integral type that is able to hold the value
* staticTokens.length + dynamicTokens.length. For example if there are 20 * staticTokens.length + dynamicTokens.length + possibleDefaultTokens.length.
* static tokens, 30 dynamic tokens, and 10 possible default tokens, this * For example if there are 20 static tokens, 30 dynamic tokens,
* template will alias itself to ubyte, as 20 + 30 + 10 < $(D_KEYWORD ubyte).max. * and 10 possible default tokens, this template will alias itself to ubyte,
* as 20 + 30 + 10 < $(D_KEYWORD ubyte).max.
* Examples: * Examples:
* --- * ---
* // In our calculator example this means that IdType is an alias for ubyte. * // In our calculator example this means that IdType is an alias for ubyte.