Unit PasDoc_Scanner

Description

Scanner for Pascal, producing tokens and interpreting conditionals.

Source: source/component/PasDoc_Scanner.pas (line 30).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class ETokenizerStreamEnd  
Class EInvalidIfCondition  
Class TScanner Scanner for Pascal, producing tokens and interpreting conditionals

Returns tokens from a Pascal language source code input stream.

Types

TUpperCaseLetter = 'A'..'Z';
TSwitchOptions = array[TUpperCaseLetter] of Boolean;
TDirectiveType = (...);

Constants

MAX_TOKENIZERS = 32;

Description

Types

TUpperCaseLetter = 'A'..'Z';

subrange type that has the 26 lower case letters from a to z

Source: source/component/PasDoc_Scanner.pas (line 54).

TSwitchOptions = array[TUpperCaseLetter] of Boolean;

an array of boolean values, index type is TUpperCaseLetter

Source: source/component/PasDoc_Scanner.pas (line 56).

TDirectiveType = (...);

All directives a scanner is going to regard.

Values
  • DT_UNKNOWN
  • DT_DEFINE
  • DT_ELSE
  • DT_ENDIF
  • DT_IFDEF
  • DT_IFNDEF
  • DT_IFOPT
  • DT_INCLUDE_FILE
  • DT_UNDEF
  • DT_INCLUDE_FILE_2
  • DT_IF
  • DT_ELSEIF
  • DT_IFEND

Source: source/component/PasDoc_Scanner.pas (line 62).

Constants

MAX_TOKENIZERS = 32;

maximum number of streams we can recurse into; first one is the unit stream, any other stream an include file; current value is 32, increase this if you have more include files recursively including others

Source: source/component/PasDoc_Scanner.pas (line 50).

Authors


Generated by PasDoc 0.17.0.snapshot.