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