Close the Delphi IDE before running the installer. Installing packages while the IDE is open may make the registration fail or require a manual restart.
Run the installer for your Delphi version and edition:
EgStrParserSetup-2.1.0-D12.exe: Standard edition,
Delphi 12EgStrParserSetup-2.1.0-D13.exe: Standard edition,
Delphi 13EgStrParserProSetup-2.1.0-D12.exe: Pro edition, Delphi
12EgStrParserProSetup-2.1.0-D13.exe: Pro edition, Delphi
13EgStrParserDemoSetup-2.1.0-D12.exe: Demo edition,
Delphi 12EgStrParserDemoSetup-2.1.0-D13.exe: Demo edition,
Delphi 13Follow the wizard. The installer requires administrator privileges to
write to Program Files and to the Delphi Help
folder.
Each installer is for one Delphi version; if that version is not
installed, the installer asks before going on. With Delphi 12 and Delphi
13 on the same computer, run the installer of each: they install to
separate folders (for example
C:\Program Files\Easygate\EgStrParser\Delphi 13) and do not
affect each other. Installing an edition removes the edition (Standard,
Pro or Demo) previously installed for the same Delphi version.
Windows security warning
The installers are digitally signed with a self-signed code-signing certificate. Windows SmartScreen may show a blue warning, “Windows protected your PC” or “Unknown publisher”, before the installer runs. This is expected and does not indicate a problem with the file.
To proceed, click More info in the warning, then Run anyway. If the warning shows the publisher Easygate, Lda., the file is the original installer.
Two installation types are offered:
The core DCUs component is always installed. The optional components are:
TEgStrParser on the component palette for VCL and
FireMonkey forms. The runtime package is part of the core
component.Up to version 2.0.0 there were separate VCL and FMX design-time packages. From 2.1.0 a single design-time package serves both frameworks; the previous version is uninstalled automatically.
.bpl, .dcp,
.dcu) to the installation folder, under
Lib\.HKEY_CURRENT_USER\Software\Embarcadero\BDS\<version>\Known Packages).
Delphi 13 and Delphi 12.3 or later also have a 64-bit IDE: when it is
installed, the Win64 build of the package is registered for it as well
(Known Packages x64), and the Win64 runtime package is
copied to its bin64 folder.HKEY_CURRENT_USER\Software\Embarcadero\BDS\<version>\Library\Win32
and \Win64): the core folder for Win32 and Win64 (always),
and the design-time package folder for Win32 (when that component is
selected). Projects therefore find the EgStrParser units without further
configuration; see Using the core
DCUs below.EgStrParser.chm to the Delphi
Help\doc folder and registers it in the IDE
(HKEY_CURRENT_USER\Software\Embarcadero\BDS\<version>\Help\HtmlHelp1Files).
F1 on an EgStrParser identifier in the code editor or in the Object
Inspector then opens its page in this manual.The registration is per user (HKEY_CURRENT_USER): it
applies only to the current Windows user account.
Open the Delphi IDE and search the Tool Palette for
TEgStrParser. The component is in the
Easygate category, in the 32-bit IDE and, in Delphi 13
and Delphi 12.3 or later, in the 64-bit IDE too. If it is not there,
open Component > Install Packages, find the
EgStrParser design-time package in the list and make sure it is
checked.
To check the help, type ParseInput in a unit, place the
cursor on it and press F1.
Use Settings > Apps (or Control Panel
> Programs > Uninstall a program) and select EgStrParser.
The uninstaller removes the files copied by the installer, the help file
in the Delphi Help\doc folder, and the library paths, Known
Packages and help entries from the Delphi registry. Files created or
changed after the installation (for example, source files copied to a
project folder) are not removed.
The Pro edition installer includes the source files of the library as an optional component. Select Full to install every component, including the source, or Custom to choose.
EgStrParser.pas and EgStrParserComp.pas are
copied to <install folder>\Source\. To use them in a
project, add that folder to the project search path or copy the files to
the project folder.
The core DCUs compile the parser into the application without the
runtime package (.bpl). Each platform folder holds two
DCUs, EgStrParser.dcu (the parsing engine) and
EgStrParserComp.dcu (the TEgStrParser
component), and the runtime package (.bpl,
.dcp) built from them.
The core folders are:
<install folder>\Lib\Delphi370\Win32\core\ (Win32, Delphi 13)
<install folder>\Lib\Delphi370\Win64\core\ (Win64, Delphi 13)
<install folder>\Lib\Delphi290\Win32\core\ (Win32, Delphi 12)
<install folder>\Lib\Delphi290\Win64\core\ (Win64, Delphi 12)
In the Demo edition they are under Lib\Delphi370\Demo\
and Lib\Delphi290\Demo\.
The installer adds the core folder to the global Delphi library path
for Win32 and Win64, so no project configuration is needed: add
EgStrParser and, when needed, EgStrParserComp
to the uses clause. The TEgStrParser component
is available through the core DCUs; ParseInput can also be
called without the component. The DCUs in the core folder are the ones
the runtime package is built from, so they do not conflict with it.
Whether the code is linked into the executable or loaded from the
runtime package depends only on the project option Link with
runtime packages.
uses
EgStrParser;
var
R: TParseResult;
begin
R := ParseInput('10/2/26 ~ 11/2/26', itDate);
if R.ResultType = otRange then
ShowMessage(R.SQLExpression);
end;
Building on a machine without the installer (a build
server, for example): copy the core folder of the target platform and
Delphi version and add it to the project search path (Project
> Options > Building > Delphi Compiler > Search
path), or pass it to the command-line compiler with
-U.