<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


ASCII Search:

In String Words in TurboForth Kernal

Word Name: ASCII
Type: Immediate word
Data Stack Signature: -- ascii
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Obtains the ASCII code of the first character of the word that follows itself in the input stream.

Example:

: STAR ( -- 42 ) ASCII * ;

Comment:

If used on the command line, behaves as per CHAR. If used within a colon definition, compiles the first character of the string immediately following into the colon definition as a literal. The rest of the string is skipped.

See Also: CHAR 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>