Class tparser

Unit

Declaration

type tparser = class(tnullinterfacedobject)

Description

No description available, ancestor tnullinterfacedobject description follows

Hierarchy

Overview

Fields

Protected fscanners: scannerarty;
Protected fsyntaxerrorcount: integer;
Protected fto: ptokenty;

Methods

Protected function getscanner: tscanner;
Protected procedure setscanner(const Value: tscanner);
Protected procedure internalerror;
Protected procedure syntaxerror;
Protected function getscannerclass: scannerclassty; virtual;
Public constructor create; overload;
Public constructor create(const afilelist: tmseindexednamelist); overload; virtual;
Public constructor create(const afilelist: tmseindexednamelist; const atext: string); overload;
Public destructor destroy; override;
Public procedure reset;
Public procedure clear; virtual;
Public procedure initidents; virtual;
Public procedure parse; virtual;
Public procedure nexttoken;
Public procedure nextnonwhitetoken;
Public procedure lasttoken;
Public procedure lastnonwhitetoken;
Public function gettoken: string;
Public function getorigtoken: string;
Public function getorigtext(const start: pchar): string;
Public function getlastorigtext(const start: pchar): string;
Public function getident: integer; overload;
Public function getident(out aident: integer): boolean; overload;
Public function getnameorident(out aident: integer): boolean; overload;
Public function getnameorident: boolean; overload;
Public function getfirstident: integer;
Public function checkident(const ident: integer): boolean; overload;
Public function checkident(const ident: array of integer): integer; overload;
Public function testident(const ident: integer): boolean;
Public function checknamenoident: boolean;
Public function skipnamenoident: boolean;
Public function checkname: boolean; overload;
Public function checkname(const aname: ansistring): boolean; overload;
Public function getname(out value: lstringty): boolean; overload;
Public function getorigname(out value: lstringty): boolean; overload;
Public function getname: string; overload;
Public function getorigname: string; overload;
Public function getnamenoident(out value: lstringty): boolean;
Public function getorignamenoident(out value: lstringty): boolean;
Public function testname(const atoken: tokenty; const aname: string): boolean;
Public function testnames(const atoken: tokenty; const anames: array of string): integer;
Public function getoperator: char;
Public function getnextoperator: char;
Public function testoperator(op: char): boolean;
Public function checkoperator(op: char): boolean;
Public function checknextoperator(aoperator: char): boolean;
Public function findoperator(aoperator: char): boolean;
Public function findclosingbracket: boolean;
Public function getvaluestring(var value: string): valuekindty; virtual;
Public function getnamelist: lstringarty;
Public function getorignamelist: lstringarty;
Public function skipcomment: boolean; virtual;
Public function checknewline: boolean;
Public function nextline: boolean;
Public function skipwhitespace: boolean;
Public function skipwhitespaceonly: boolean;
Public function skipnamelist: boolean;
Public function skipidents: boolean;
Public function isfirstnonwhitetoken: boolean;
Public procedure mark;
Public function back: boolean;
Public procedure pop;
Public procedure setidents(idents: array of string);
Public function sourceoffset: integer;
Public function sourcepos: sourceposty;
Public function nextsourcepos: sourceposty;
Public function nexttokenornewlinepos: sourceposty;
Public function getsourcepos(const atoken: tokenidty): sourceposty;
Public function lasttokenoffset: integer;
Public function lasttokenpos: sourceposty;
Public function addscanner(const ascanner: tscanner): integer;
Public function dogetincludefile(const afilename: filenamety; const astatementstart,astatementend: sourceposty): tscanner; virtual;
Public function includefile(const filename: filenamety; const statementstart,statementend: sourceposty): integer;
Public procedure callincludefile(const filename: filenamety; const startpos: sourceposty; const anum: integer);
Public function origoffset: integer;

Properties

Public property token: ptokenty read fto;
Public property acttoken: tokenidty read getacttoken write setacttoken;
Public property eof: boolean read feof;
Public property scanner: tscanner read getscanner write setscanner;
Public property recursivecomment: boolean read frecursivecomment write frecursivecomment default false;
Public property ongetincludefile: getincludefileeventty read fongetincludefile write fongetincludefile;
Public property includefiledirs: filenamearty read fincludefiledirs write fincludefiledirs;
Public property startdefines: stringarty read fstartdefines write fstartdefines;

Description

Fields

Protected fscanners: scannerarty;
 
Protected fsyntaxerrorcount: integer;
 
Protected fto: ptokenty;
 

Methods

Protected function getscanner: tscanner;
 
Protected procedure setscanner(const Value: tscanner);
 
Protected procedure internalerror;
 
Protected procedure syntaxerror;
 
Protected function getscannerclass: scannerclassty; virtual;
 
Public constructor create; overload;
 
Public constructor create(const afilelist: tmseindexednamelist); overload; virtual;
 
Public constructor create(const afilelist: tmseindexednamelist; const atext: string); overload;
 
Public destructor destroy; override;
 
Public procedure reset;
 
Public procedure clear; virtual;
 
Public procedure initidents; virtual;
 
Public procedure parse; virtual;
 
Public procedure nexttoken;
 
Public procedure nextnonwhitetoken;
 
Public procedure lasttoken;
 
Public procedure lastnonwhitetoken;
 
Public function gettoken: string;
 
Public function getorigtoken: string;
 
Public function getorigtext(const start: pchar): string;
 
Public function getlastorigtext(const start: pchar): string;
 
Public function getident: integer; overload;
 
Public function getident(out aident: integer): boolean; overload;
 
Public function getnameorident(out aident: integer): boolean; overload;
 
Public function getnameorident: boolean; overload;
 
Public function getfirstident: integer;
 
Public function checkident(const ident: integer): boolean; overload;
 
Public function checkident(const ident: array of integer): integer; overload;
 
Public function testident(const ident: integer): boolean;
 
Public function checknamenoident: boolean;
 
Public function skipnamenoident: boolean;
 
Public function checkname: boolean; overload;
 
Public function checkname(const aname: ansistring): boolean; overload;
 
Public function getname(out value: lstringty): boolean; overload;
 
Public function getorigname(out value: lstringty): boolean; overload;
 
Public function getname: string; overload;
 
Public function getorigname: string; overload;
 
Public function getnamenoident(out value: lstringty): boolean;
 
Public function getorignamenoident(out value: lstringty): boolean;
 
Public function testname(const atoken: tokenty; const aname: string): boolean;
 
Public function testnames(const atoken: tokenty; const anames: array of string): integer;
 
Public function getoperator: char;
 
Public function getnextoperator: char;
 
Public function testoperator(op: char): boolean;
 
Public function checkoperator(op: char): boolean;
 
Public function checknextoperator(aoperator: char): boolean;
 
Public function findoperator(aoperator: char): boolean;
 
Public function findclosingbracket: boolean;
 
Public function getvaluestring(var value: string): valuekindty; virtual;
 
Public function getnamelist: lstringarty;
 
Public function getorignamelist: lstringarty;
 
Public function skipcomment: boolean; virtual;
 
Public function checknewline: boolean;
 
Public function nextline: boolean;
 
Public function skipwhitespace: boolean;
 
Public function skipwhitespaceonly: boolean;
 
Public function skipnamelist: boolean;
 
Public function skipidents: boolean;
 
Public function isfirstnonwhitetoken: boolean;
 
Public procedure mark;
 
Public function back: boolean;
 
Public procedure pop;
 
Public procedure setidents(idents: array of string);
 
Public function sourceoffset: integer;
 
Public function sourcepos: sourceposty;
 
Public function nextsourcepos: sourceposty;
 
Public function nexttokenornewlinepos: sourceposty;
 
Public function getsourcepos(const atoken: tokenidty): sourceposty;
 
Public function lasttokenoffset: integer;
 
Public function lasttokenpos: sourceposty;
 
Public function addscanner(const ascanner: tscanner): integer;
 
Public function dogetincludefile(const afilename: filenamety; const astatementstart,astatementend: sourceposty): tscanner; virtual;
 
Public function includefile(const filename: filenamety; const statementstart,statementend: sourceposty): integer;
 
Public procedure callincludefile(const filename: filenamety; const startpos: sourceposty; const anum: integer);
 
Public function origoffset: integer;
 

Properties

Public property token: ptokenty read fto;
 
Public property acttoken: tokenidty read getacttoken write setacttoken;
 
Public property eof: boolean read feof;
 
Public property scanner: tscanner read getscanner write setscanner;
 
Public property recursivecomment: boolean read frecursivecomment write frecursivecomment default false;
 
Public property ongetincludefile: getincludefileeventty read fongetincludefile write fongetincludefile;
 
Public property includefiledirs: filenamearty read fincludefiledirs write fincludefiledirs;
 
Public property startdefines: stringarty read fstartdefines write fstartdefines;
 

Generated by PasDoc 0.16.0.