Tokenizer_Default_Code

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Tokenizer >

Tokenizer_Default_Code

 

Description

 

Change a char default group giving char as ASCII code.

 

Syntax

 

n = Tokenizer_Default_Code(AsciiCharCode, MainType)

 

Returns

 

Number. %TRUE if all ok.

 

Parameters

 

Name

Type

Optional

Meaning

AsciiCharCode

Numeric

No

A single char string

MainType

Numeric

No

Group to insert char code into

 

Remarks

 

During startup, Tokenizer module set each ASCII table chars to a specific default group. With this function you can change default group for each 255 ascii chars.

For example "$" char by default belongs to Delimiter group. To change it to belong to Alphabetic group use the following:

 

Tokenizer_Default_Code(36, %TOKENIZER_DEFAULT_Alpha)

 

Restrictions

 

See also

 

Examples