Unit VRMLLexer

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

TVRMLLexer class and helpers.

uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EVRMLGzipCompressed  
Class TVRMLLexer VRML unified lexer.
Class TVRMLLexerFileName  
Class EVRMLLexerError  
Class EVRMLParserError  

Functions and Procedures

function StringToVRMLStringToken(const s: string): string;

Types

TVRMLKeyword = (...);
TVRMLKeywords = set of TVRMLKeyword;
TVRMLToken = (...);
TVRMLTokens = set of TVRMLToken;

Constants

VRML10Keywords = [vkDEF, vkUSE, vkFALSE, vkTRUE];
TokenNumbers : TVRMLTokens = [vtFloat, vtInteger];
VRMLKeywords: array[TVRMLKeyword]of string = ( 'DEF', 'EXTERNPROTO', 'FALSE', 'IS', 'NULL', 'PROTO', 'ROUTE', 'TO', 'TRUE', 'USE', 'eventIn', 'eventOut', 'exposedField', 'field');

Description

Functions and Procedures

function StringToVRMLStringToken(const s: string): string;

otoczy s cudzyslowami i zmieni wnetrze s tak zeby wynik mogl byc zapisany jako token vtString o wartosci s. Mowiac wprost, zamieni wszystkie " na \" i wszystkie \ na \\.

Types

TVRMLKeyword = (...);

Valid keywords for any VRML version.

Values
  • vkDEF:
  • vkEXTERNPROTO:
  • vkFALSE:
  • vkIS:
  • vkNULL:
  • vkPROTO:
  • vkROUTE:
  • vkTO:
  • vkTRUE:
  • vkUSE:
  • vkEventIn:
  • vkEventOut:
  • vkExposedField:
  • vkField:
TVRMLKeywords = set of TVRMLKeyword;
 
TVRMLToken = (...);

VRML lexer token

Values
  • vtKeyword:
  • vtName:
  • vtOpenCurlyBracket: Symbols for all VRML versions
  • vtCloseCurlyBracket:
  • vtOpenSqBracket:
  • vtCloseSqBracket:
  • vtOpenBracket: In VRML 2.0, they are no longer valid symbols (comma is even considered a whitespace). They will never be returned by lexer when reading VRML >= 2.0 files.
  • vtCloseBracket:
  • vtBar:
  • vtComma:
  • vtPeriod: They will never be returned by lexer when reading VRML < 2.0 files.
  • vtFloat:
  • vtInteger:
  • vtString:
  • vtEnd: Subsequent reads NextToken from stream will always result in vtEnd (they will not raise an error).
TVRMLTokens = set of TVRMLToken;
 

Constants

VRML10Keywords = [vkDEF, vkUSE, vkFALSE, vkTRUE];
 
TokenNumbers : TVRMLTokens = [vtFloat, vtInteger];
 
VRMLKeywords: array[TVRMLKeyword]of string = ( 'DEF', 'EXTERNPROTO', 'FALSE', 'IS', 'NULL', 'PROTO', 'ROUTE', 'TO', 'TRUE', 'USE', 'eventIn', 'eventOut', 'exposedField', 'field');
 

Generated by PasDoc 0.10.0 on 2008-02-25 00:00:41