Class tparser
Unit
Declaration
type tparser = class(tnullinterfacedobject)
Description
No description available, ancestor tnullinterfacedobject description follows
Hierarchy
- tobject
- tnullinterfacedobject
- tparser
Overview
Fields
fscanners: scannerarty; |
|
fsyntaxerrorcount: integer; |
|
fto: ptokenty; |
Methods
function getscanner: tscanner; |
|
procedure setscanner(const Value: tscanner); |
|
procedure internalerror; |
|
procedure syntaxerror; |
|
function getscannerclass: scannerclassty; virtual; |
|
constructor create; overload; |
|
constructor create(const afilelist: tmseindexednamelist); overload; virtual; |
|
constructor create(const afilelist: tmseindexednamelist; const atext: string); overload; |
|
destructor destroy; override; |
|
procedure reset; |
|
procedure clear; virtual; |
|
procedure initidents; virtual; |
|
procedure parse; virtual; |
|
procedure nexttoken; |
|
procedure nextnonwhitetoken; |
|
procedure lasttoken; |
|
procedure lastnonwhitetoken; |
|
function gettoken: string; |
|
function getorigtoken: string; |
|
function getorigtext(const start: pchar): string; |
|
function getlastorigtext(const start: pchar): string; |
|
function getident: integer; overload; |
|
function getident(out aident: integer): boolean; overload; |
|
function getnameorident(out aident: integer): boolean; overload; |
|
function getnameorident: boolean; overload; |
|
function getfirstident: integer; |
|
function checkident(const ident: integer): boolean; overload; |
|
function checkident(const ident: array of integer): integer; overload; |
|
function testident(const ident: integer): boolean; |
|
function checknamenoident: boolean; |
|
function skipnamenoident: boolean; |
|
function checkname: boolean; overload; |
|
function checkname(const aname: ansistring): boolean; overload; |
|
function getname(out value: lstringty): boolean; overload; |
|
function getorigname(out value: lstringty): boolean; overload; |
|
function getname: string; overload; |
|
function getorigname: string; overload; |
|
function getnamenoident(out value: lstringty): boolean; |
|
function getorignamenoident(out value: lstringty): boolean; |
|
function testname(const atoken: tokenty; const aname: string): boolean; |
|
function testnames(const atoken: tokenty; const anames: array of string): integer; |
|
function getoperator: char; |
|
function getnextoperator: char; |
|
function testoperator(op: char): boolean; |
|
function checkoperator(op: char): boolean; |
|
function checknextoperator(aoperator: char): boolean; |
|
function findoperator(aoperator: char): boolean; |
|
function findclosingbracket: boolean; |
|
function getvaluestring(var value: string): valuekindty; virtual; |
|
function getnamelist: lstringarty; |
|
function getorignamelist: lstringarty; |
|
function skipcomment: boolean; virtual; |
|
function checknewline: boolean; |
|
function nextline: boolean; |
|
function skipwhitespace: boolean; |
|
function skipwhitespaceonly: boolean; |
|
function skipnamelist: boolean; |
|
function skipidents: boolean; |
|
function isfirstnonwhitetoken: boolean; |
|
procedure mark; |
|
function back: boolean; |
|
procedure pop; |
|
procedure setidents(idents: array of string); |
|
function sourceoffset: integer; |
|
function sourcepos: sourceposty; |
|
function nextsourcepos: sourceposty; |
|
function nexttokenornewlinepos: sourceposty; |
|
function getsourcepos(const atoken: tokenidty): sourceposty; |
|
function lasttokenoffset: integer; |
|
function lasttokenpos: sourceposty; |
|
function addscanner(const ascanner: tscanner): integer; |
|
function dogetincludefile(const afilename: filenamety; const astatementstart,astatementend: sourceposty): tscanner; virtual; |
|
function includefile(const filename: filenamety; const statementstart,statementend: sourceposty): integer; |
|
procedure callincludefile(const filename: filenamety; const startpos: sourceposty; const anum: integer); |
|
function origoffset: integer; |
Properties
property token: ptokenty read fto; |
|
property acttoken: tokenidty read getacttoken write setacttoken; |
|
property eof: boolean read feof; |
|
property scanner: tscanner read getscanner write setscanner; |
|
property recursivecomment: boolean read frecursivecomment
write frecursivecomment default false; |
|
property ongetincludefile: getincludefileeventty read fongetincludefile
write fongetincludefile; |
|
property includefiledirs: filenamearty read fincludefiledirs
write fincludefiledirs; |
|
property startdefines: stringarty read fstartdefines write fstartdefines; |
Description
Fields
fscanners: scannerarty; |
|
fsyntaxerrorcount: integer; |
|
fto: ptokenty; |
|
Methods
function getscanner: tscanner; |
|
procedure setscanner(const Value: tscanner); |
|
procedure internalerror; |
|
procedure syntaxerror; |
|
function getscannerclass: scannerclassty; virtual; |
|
constructor create; overload; |
|
constructor create(const afilelist: tmseindexednamelist); overload; virtual; |
|
constructor create(const afilelist: tmseindexednamelist; const atext: string); overload; |
|
destructor destroy; override; |
|
procedure reset; |
|
procedure clear; virtual; |
|
procedure initidents; virtual; |
|
procedure parse; virtual; |
|
procedure nexttoken; |
|
procedure nextnonwhitetoken; |
|
procedure lasttoken; |
|
procedure lastnonwhitetoken; |
|
function gettoken: string; |
|
function getorigtoken: string; |
|
function getorigtext(const start: pchar): string; |
|
function getlastorigtext(const start: pchar): string; |
|
function getident: integer; overload; |
|
function getident(out aident: integer): boolean; overload; |
|
function getnameorident(out aident: integer): boolean; overload; |
|
function getnameorident: boolean; overload; |
|
function getfirstident: integer; |
|
function checkident(const ident: integer): boolean; overload; |
|
function checkident(const ident: array of integer): integer; overload; |
|
function testident(const ident: integer): boolean; |
|
function checknamenoident: boolean; |
|
function skipnamenoident: boolean; |
|
function checkname: boolean; overload; |
|
function checkname(const aname: ansistring): boolean; overload; |
|
function getname(out value: lstringty): boolean; overload; |
|
function getorigname(out value: lstringty): boolean; overload; |
|
function getname: string; overload; |
|
function getorigname: string; overload; |
|
function getnamenoident(out value: lstringty): boolean; |
|
function getorignamenoident(out value: lstringty): boolean; |
|
function testname(const atoken: tokenty; const aname: string): boolean; |
|
function testnames(const atoken: tokenty; const anames: array of string): integer; |
|
function getoperator: char; |
|
function getnextoperator: char; |
|
function testoperator(op: char): boolean; |
|
function checkoperator(op: char): boolean; |
|
function checknextoperator(aoperator: char): boolean; |
|
function findoperator(aoperator: char): boolean; |
|
function findclosingbracket: boolean; |
|
function getvaluestring(var value: string): valuekindty; virtual; |
|
function getnamelist: lstringarty; |
|
function getorignamelist: lstringarty; |
|
function skipcomment: boolean; virtual; |
|
function checknewline: boolean; |
|
function nextline: boolean; |
|
function skipwhitespace: boolean; |
|
function skipwhitespaceonly: boolean; |
|
function skipnamelist: boolean; |
|
function skipidents: boolean; |
|
function isfirstnonwhitetoken: boolean; |
|
procedure mark; |
|
function back: boolean; |
|
procedure pop; |
|
procedure setidents(idents: array of string); |
|
function sourceoffset: integer; |
|
function sourcepos: sourceposty; |
|
function nextsourcepos: sourceposty; |
|
function nexttokenornewlinepos: sourceposty; |
|
function getsourcepos(const atoken: tokenidty): sourceposty; |
|
function lasttokenoffset: integer; |
|
function lasttokenpos: sourceposty; |
|
function addscanner(const ascanner: tscanner): integer; |
|
function dogetincludefile(const afilename: filenamety; const astatementstart,astatementend: sourceposty): tscanner; virtual; |
|
function includefile(const filename: filenamety; const statementstart,statementend: sourceposty): integer; |
|
procedure callincludefile(const filename: filenamety; const startpos: sourceposty; const anum: integer); |
|
function origoffset: integer; |
|
Properties
property token: ptokenty read fto; |
|
property acttoken: tokenidty read getacttoken write setacttoken; |
|
property eof: boolean read feof; |
|
property scanner: tscanner read getscanner write setscanner; |
|
property recursivecomment: boolean read frecursivecomment
write frecursivecomment default false; |
|
property ongetincludefile: getincludefileeventty read fongetincludefile
write fongetincludefile; |
|
property includefiledirs: filenamearty read fincludefiledirs
write fincludefiledirs; |
|
property startdefines: stringarty read fstartdefines write fstartdefines; |
|
Generated by PasDoc 0.16.0.