├── .gitignore
├── scr.gif
├── scr.png
├── Tests
├── Tests.res
├── Tests.identcache
├── Tests.dproj.local
├── Tests.dpr
├── MathParserTest.pas
└── Tests.dproj
├── MathParserProj.exe
├── MathParserProj.res
├── README.md
├── test.py
├── MathParserProj.dpr
├── MathParser.Types.pas
├── ProjectGroup.groupproj
├── Main.dfm
├── Main.pas
├── MathParser.Parser.pas
├── MathParser.VirtualMachine.pas
├── MathParser.Compiler.pas
├── LICENSE
└── MathParserProj.dproj
/.gitignore:
--------------------------------------------------------------------------------
1 | *.zzz
2 |
--------------------------------------------------------------------------------
/scr.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/turborium/SimpleMathCompiler/HEAD/scr.gif
--------------------------------------------------------------------------------
/scr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/turborium/SimpleMathCompiler/HEAD/scr.png
--------------------------------------------------------------------------------
/Tests/Tests.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/turborium/SimpleMathCompiler/HEAD/Tests/Tests.res
--------------------------------------------------------------------------------
/MathParserProj.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/turborium/SimpleMathCompiler/HEAD/MathParserProj.exe
--------------------------------------------------------------------------------
/MathParserProj.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/turborium/SimpleMathCompiler/HEAD/MathParserProj.res
--------------------------------------------------------------------------------
/Tests/Tests.identcache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/turborium/SimpleMathCompiler/HEAD/Tests/Tests.identcache
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MathCompiler
2 |
3 | ### Максимально простой и понятный однопроходный компилятор с леворекурсивным спуском + виртуальная машина для вычисления выражений
4 |
5 | тесты сломанафы
6 |
7 | 
8 |
--------------------------------------------------------------------------------
/test.py:
--------------------------------------------------------------------------------
1 | import math
2 | import datetime
3 |
4 | X=10
5 | Y=50
6 | ans=0
7 | a = datetime.datetime.now()
8 | for i in range(0,1000000):
9 | ans=ans*0.1+math.sin(X) + (math.cos(Y) * math.exp(6) + 23 - 8) * 10
10 | # ans=ans*0.1+math.sin(X) + (math.cos(Y) * math.exp(6) + 23 - 8) * 10 + X * 0.2 + 0.1 * (X * 0.545 + X * 0.245 + X * 0.765 + Y + 23 + 219 + 93.0)
11 | X=X+0.1
12 | b = datetime.datetime.now()
13 |
14 | print(ans)
15 | print((b-a).microseconds / 1000)
--------------------------------------------------------------------------------
/MathParserProj.dpr:
--------------------------------------------------------------------------------
1 | program MathParserProj;
2 |
3 | uses
4 | Vcl.Forms,
5 | Main in 'Main.pas' {FormMain},
6 | MathParser.Compiler in 'MathParser.Compiler.pas',
7 | Vcl.Themes,
8 | Vcl.Styles,
9 | MathParser.VirtualMachine in 'MathParser.VirtualMachine.pas',
10 | MathParser.Parser in 'MathParser.Parser.pas',
11 | MathParser.Types in 'MathParser.Types.pas';
12 |
13 | {$R *.res}
14 |
15 | begin
16 | Application.Initialize;
17 | Application.MainFormOnTaskbar := True;
18 | Application.CreateForm(TFormMain, FormMain);
19 | Application.Run;
20 | end.
21 |
--------------------------------------------------------------------------------
/Tests/Tests.dproj.local:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1899.12.30 00:00:00.000.257,C:\Users\crazzzypeter\Documents\Embarcadero\Studio\Projects\stream\SimpleMathParser\MathVM.pas=C:\Users\crazzzypeter\Documents\Embarcadero\Studio\Projects\stream\SimpleMathParser\MathVirtualMachine.pas
5 | 1899.12.30 00:00:00.000.589,=C:\Users\crazzzypeter\Documents\Embarcadero\Studio\Projects\stream\SimpleMathParser\MathVM.pas
6 | 1899.12.30 00:00:00.000.729,C:\Users\crazzzypeter\Documents\Embarcadero\Studio\Projects\stream\SimpleMathParser\MathParser.pas=C:\Users\crazzzypeter\Documents\Embarcadero\Studio\Projects\stream\SimpleMathParser\MathCompiller.pas
7 |
8 |
9 |
--------------------------------------------------------------------------------
/MathParser.Types.pas:
--------------------------------------------------------------------------------
1 | // copyright 2021-2021 crazzzypeter
2 | // license GNU 3.0
3 | unit MathParser.Types;
4 |
5 | {$IFDEF FPC}{$MODE DELPHIUNICODE}{$ENDIF}
6 | {$SCOPEDENUMS ON}
7 |
8 | interface
9 |
10 | uses
11 | Classes, SysUtils;
12 |
13 | type
14 | EMathCompillerError = class(Exception)
15 | private
16 | FPosition: Integer;
17 | public
18 | constructor Create(const Position: Integer; const Message: string);
19 | property Position: Integer read FPosition;
20 | end;
21 |
22 | EVirtualMachineError = class(Exception)
23 | constructor Create(const Message: string);
24 | end;
25 |
26 | implementation
27 |
28 | { EMathCompillerError }
29 |
30 | constructor EMathCompillerError.Create(const Position: Integer; const Message: string);
31 | begin
32 | inherited Create('Error: "' + Message + '" at ' + IntToStr(Position));
33 | FPosition := Position;
34 | end;
35 |
36 | { EVirtualMachineError }
37 |
38 | constructor EVirtualMachineError.Create(const Message: string);
39 | begin
40 | inherited Create('Error: "' + Message + '" at runtime');
41 | end;
42 |
43 | end.
44 |
--------------------------------------------------------------------------------
/ProjectGroup.groupproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | {63D66E36-A567-4E90-9F27-8C102C408F45}
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Default.Personality.12
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/Main.dfm:
--------------------------------------------------------------------------------
1 | object FormMain: TFormMain
2 | Left = 0
3 | Top = 0
4 | BorderWidth = 8
5 | Caption = 'FormMain'
6 | ClientHeight = 336
7 | ClientWidth = 535
8 | Color = clBtnFace
9 | Constraints.MinHeight = 200
10 | Constraints.MinWidth = 300
11 | Font.Charset = DEFAULT_CHARSET
12 | Font.Color = clWindowText
13 | Font.Height = -14
14 | Font.Name = 'Segoe UI'
15 | Font.Style = []
16 | OnCreate = FormCreate
17 | OnDestroy = FormDestroy
18 | PixelsPerInch = 96
19 | TextHeight = 19
20 | object EditExpression: TEdit
21 | Left = 0
22 | Top = 0
23 | Width = 535
24 | Height = 26
25 | Align = alTop
26 | Font.Charset = DEFAULT_CHARSET
27 | Font.Color = clWindowText
28 | Font.Height = -16
29 | Font.Name = 'Courier New'
30 | Font.Style = []
31 | ParentFont = False
32 | TabOrder = 0
33 | Text = '(6-1.5*2)*3/2 + -20'
34 | end
35 | object ButtonExecute: TButton
36 | AlignWithMargins = True
37 | Left = 0
38 | Top = 29
39 | Width = 535
40 | Height = 25
41 | Margins.Left = 0
42 | Margins.Right = 0
43 | Align = alTop
44 | Caption = 'Execute'
45 | TabOrder = 1
46 | OnClick = ButtonExecuteClick
47 | end
48 | object MemoLog: TMemo
49 | Left = 0
50 | Top = 82
51 | Width = 535
52 | Height = 254
53 | Align = alClient
54 | Font.Charset = DEFAULT_CHARSET
55 | Font.Color = clWindowText
56 | Font.Height = -16
57 | Font.Name = 'Courier New'
58 | Font.Style = []
59 | ParentFont = False
60 | ScrollBars = ssBoth
61 | TabOrder = 2
62 | ExplicitTop = 57
63 | ExplicitHeight = 279
64 | end
65 | object ButtonBenchmark: TButton
66 | Left = 0
67 | Top = 57
68 | Width = 535
69 | Height = 25
70 | Align = alTop
71 | Caption = 'Benchmark'
72 | TabOrder = 3
73 | OnClick = ButtonBenchmarkClick
74 | ExplicitLeft = 248
75 | ExplicitTop = 184
76 | ExplicitWidth = 75
77 | end
78 | end
79 |
--------------------------------------------------------------------------------
/Tests/Tests.dpr:
--------------------------------------------------------------------------------
1 | program Tests;
2 |
3 | {$IFNDEF TESTINSIGHT}
4 | {$APPTYPE CONSOLE}
5 | {$ENDIF}
6 | {$STRONGLINKTYPES ON}
7 | uses
8 | System.SysUtils,
9 | {$IFDEF TESTINSIGHT}
10 | TestInsight.DUnitX,
11 | {$ELSE}
12 | DUnitX.Loggers.Console,
13 | DUnitX.Loggers.Xml.NUnit,
14 | {$ENDIF }
15 | DUnitX.TestFramework,
16 | MathParserTest in 'MathParserTest.pas',
17 | MathParser.Compiler in '..\MathParser.Compiler.pas',
18 | MathParser.VirtualMachine in '..\MathParser.VirtualMachine.pas',
19 | MathParser.Parser in '..\MathParser.Parser.pas',
20 | MathParser.Types in '..\MathParser.Types.pas';
21 |
22 | {$IFNDEF TESTINSIGHT}
23 | var
24 | runner: ITestRunner;
25 | results: IRunResults;
26 | logger: ITestLogger;
27 | nunitLogger : ITestLogger;
28 | {$ENDIF}
29 | begin
30 | {$IFDEF TESTINSIGHT}
31 | TestInsight.DUnitX.RunRegisteredTests;
32 | {$ELSE}
33 | try
34 | //Check command line options, will exit if invalid
35 | TDUnitX.CheckCommandLine;
36 | //Create the test runner
37 | runner := TDUnitX.CreateRunner;
38 | //Tell the runner to use RTTI to find Fixtures
39 | runner.UseRTTI := True;
40 | //When true, Assertions must be made during tests;
41 | runner.FailsOnNoAsserts := False;
42 |
43 | //tell the runner how we will log things
44 | //Log to the console window if desired
45 | if TDUnitX.Options.ConsoleMode <> TDunitXConsoleMode.Off then
46 | begin
47 | logger := TDUnitXConsoleLogger.Create(TDUnitX.Options.ConsoleMode = TDunitXConsoleMode.Quiet);
48 | runner.AddLogger(logger);
49 | end;
50 | //Generate an NUnit compatible XML File
51 | nunitLogger := TDUnitXXMLNUnitFileLogger.Create(TDUnitX.Options.XMLOutputFile);
52 | runner.AddLogger(nunitLogger);
53 |
54 | //Run tests
55 | results := runner.Execute;
56 | if not results.AllPassed then
57 | System.ExitCode := EXIT_ERRORS;
58 |
59 | {$IFNDEF CI}
60 | //We don't want this happening when running under CI.
61 | if TDUnitX.Options.ExitBehavior = TDUnitXExitBehavior.Pause then
62 | begin
63 | System.Write('Done.. press key to quit.');
64 | System.Readln;
65 | end;
66 | {$ENDIF}
67 | except
68 | on E: Exception do
69 | System.Writeln(E.ClassName, ': ', E.Message);
70 | end;
71 | {$ENDIF}
72 | end.
73 |
--------------------------------------------------------------------------------
/Main.pas:
--------------------------------------------------------------------------------
1 | unit Main;
2 |
3 | interface
4 |
5 | uses
6 | Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
7 | Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, MathParser, MathCompiller, MathVirtualMachine,
8 | System.Diagnostics;
9 |
10 | type
11 | TFormMain = class(TForm)
12 | EditExpression: TEdit;
13 | ButtonExecute: TButton;
14 | MemoLog: TMemo;
15 | ButtonBenchmark: TButton;
16 | procedure FormCreate(Sender: TObject);
17 | procedure FormDestroy(Sender: TObject);
18 | procedure ButtonExecuteClick(Sender: TObject);
19 | procedure ButtonBenchmarkClick(Sender: TObject);
20 | private
21 | Parser: TMathParser;
22 | procedure ParserLog(sender: TObject; str: string);
23 | public
24 | end;
25 |
26 | var
27 | FormMain: TFormMain;
28 |
29 | implementation
30 |
31 | uses
32 | StrUtils, Math;
33 |
34 | {$R *.dfm}
35 |
36 | procedure TFormMain.ButtonBenchmarkClick(Sender: TObject);
37 | const
38 | Iterations = 1000000;
39 | Exp = 'SIN(X) + (COS(Y) * EXP(6) + 23 - 8) * 10';
40 | //Exp = 'SIN(X) + (COS(Y) * EXP(6) + 23 - 8) * 10 + X * 0.2 + 0.1 * (X * 0.545 + X * 0.245 + X * 0.765 + Y + 23 + 219 + 93.0)';
41 | var
42 | I: Integer;
43 | Ans: Double;
44 | Stopwath: TStopwatch;
45 | begin
46 | MemoLog.Clear;
47 |
48 | ParserLog(self, 'Exp: ' + Exp);
49 |
50 | Parser['X'] := 10;
51 | Parser['Y'] := 50;
52 | Parser.CompileExpression(Exp);
53 | ParserLog(Self, Parser.PrintState);
54 |
55 | Stopwath := TStopwatch.StartNew;
56 | Ans := 0;
57 | for I := 0 to Iterations - 1 do
58 | begin
59 | Ans := Ans * 0.1 + Parser.Calculate;
60 | Parser['X'] := Parser['X'] + 0.1;
61 | end;
62 | Stopwath.Stop;
63 |
64 | ParserLog(self, 'Ans: ' + FloatToStr(Ans, TFormatSettings.Invariant));
65 | ParserLog(self, 'Time: ' + IntToStr(Stopwath.ElapsedMilliseconds) + ' at ' +
66 | IntToStr(Iterations) + ' iterations!');
67 | end;
68 |
69 | procedure TFormMain.ButtonExecuteClick(Sender: TObject);
70 | var
71 | Ans: Double;
72 | begin
73 | MemoLog.Clear;
74 | try
75 | Parser.CompileExpression(EditExpression.Text);
76 | Parser['X'] := 10;
77 | Parser['Y'] := 100;
78 | Parser['Z'] := 1000;
79 |
80 | ParserLog(Self, Parser.PrintState);
81 | Ans := Parser.Calculate;
82 |
83 | ParserLog(self, 'Ans: ' + FloatToStr(Ans, TFormatSettings.Invariant));
84 | except
85 | on E: EMathCompillerError do
86 | begin
87 | ParserLog(Self, 'COMPILE ERROR');
88 | ParserLog(Self, ' 0123456789012345678901234567890123456789');
89 | ParserLog(Self, '"' + EditExpression.Text + '_"');
90 | ParserLog(Self, ' ' + DupeString(' ', E.Position) + '^');
91 | ParserLog(Self, E.Message);
92 | end;
93 | on E: EVirtualMachineError do
94 | begin
95 | ParserLog(Self, 'VM ERROR');
96 | ParserLog(Self, E.Message);
97 | end;
98 | end;
99 | end;
100 |
101 | procedure TFormMain.FormCreate(Sender: TObject);
102 | begin
103 | Parser := TMathParser.Create;
104 | end;
105 |
106 | procedure TFormMain.FormDestroy(Sender: TObject);
107 | begin
108 | Parser.Free;
109 | end;
110 |
111 | procedure TFormMain.ParserLog(sender: TObject; str: string);
112 | begin
113 | MemoLog.Lines.Add(str);
114 | end;
115 |
116 | end.
117 |
--------------------------------------------------------------------------------
/Tests/MathParserTest.pas:
--------------------------------------------------------------------------------
1 | unit MathParserTest;
2 |
3 | interface
4 |
5 | uses
6 | DUnitX.TestFramework, MathParser.Parser, MathParser.Types, SysUtils, StrUtils;
7 |
8 | type
9 | [TestFixture]
10 | TMathParserTest = class
11 | private
12 | Parser: TMathParser;
13 | public
14 | [Setup]
15 | procedure Setup;
16 | [TearDown]
17 | procedure TearDown;
18 | // Test with TestCase Attribute to supply parameters.
19 |
20 | [Test]
21 | [TestCase('Plus1','1+1;2',';')]
22 | [TestCase('Plus2','1000+0;1000',';')]
23 | [TestCase('Plus3','1+10;11',';')]
24 | [TestCase('Plus4','1+1+1;3',';')]
25 | [TestCase('PlusMinus','10-100+50-40-2;-82',';')]
26 | [TestCase('--','5--10-12;3',';')]
27 | [TestCase('++','5++++2;7',';')]
28 | [TestCase('Mul1','100*10;1000',';')]
29 | [TestCase('Mul2','10-10*10;-90',';')]
30 | [TestCase('Mul3','10*2*3;60',';')]
31 | [TestCase('div1','1000/10;100',';')]
32 | [TestCase('div2','10+100/10;20',';')]
33 | [TestCase('div3','1000/10/2;50',';')]
34 | [TestCase('bracket1','(10-5)*2;10',';')]
35 | [TestCase('bracket2','2*((10-5)*2);20',';')]
36 | [TestCase('bracket3','2*(10-5);10',';')]
37 | [TestCase('bracket4','10-(10+10);-10',';')]
38 | [TestCase('bracket5','(3*-(-((-2))))-(0)--9+++++9;12',';')]
39 | [TestCase('functions1','log(log(8)/log(2))/1/(-(-(log(log(8)/log(2)))));1',';')]
40 | [TestCase('Power','2^3^4;2417851639229258349412352',';')]
41 | procedure TestBase(const Expression: string; const Ans: Double);
42 |
43 | [Test]
44 | [TestCase('empty expression',';0',';')]
45 | [TestCase('unexpected end 1','1 + 1 + ;10',';')]
46 | [TestCase('unexpected end 2','1 + ;6',';')]
47 | [TestCase('unexpected operation',' + ;5',';')]
48 | [TestCase('expected number','3 * * 9;9',';')]
49 | [TestCase('* _',' * 9;3',';')]
50 | [TestCase('no op','543253 345 345 34;7',';')]
51 | [TestCase('no op2','1 -2 -3 4;8',';')]
52 | [TestCase('brackets1','(3(+2));2',';')]
53 | [TestCase('brackets2',')(;0',';')]
54 | [TestCase('brackets3','();1',';')]
55 | [TestCase('brackets4','((23)-(23)3)-(33));10',';')]
56 | [TestCase('brackets5','(3));3',';')]
57 | [TestCase('brackets6','((3);4',';')]
58 | procedure TestExceptions(const Expression: string; const ErrorPosionon: Integer);
59 | end;
60 |
61 | implementation
62 |
63 | procedure TMathParserTest.Setup;
64 | begin
65 | Parser := TMathParser.Create();
66 | end;
67 |
68 | procedure TMathParserTest.TearDown;
69 | begin
70 | Parser.Free;
71 | end;
72 |
73 | procedure TMathParserTest.TestBase(const Expression: string; const Ans: Double);
74 | begin
75 | Parser.CompileExpression(Expression);
76 | Assert.AreEqual(Ans, Parser.Calculate);
77 | end;
78 |
79 | procedure TMathParserTest.TestExceptions(const Expression: string; const ErrorPosionon: Integer);
80 | var
81 | Visualize: string;
82 | begin
83 | try
84 | Parser.CompileExpression(Expression);
85 | Parser.Calculate;
86 | except
87 | on E: EMathCompillerError do
88 | begin
89 | Visualize := '"' + Parser.Expression + '_"' + #13;
90 | Visualize := Visualize + ' ' + DupeString(' ', E.Position) + '^';
91 |
92 |
93 | Assert.AreEqual(ErrorPosionon, E.Position, {'Expected: ' + IntToStr(ErrorPosionon) +
94 | ', actual: ' + IntToStr(E.Position) + ', message: ' +} E.Message + #13 + visualize);
95 | Exit;
96 | end;
97 | on E: EVirtualMachineError do
98 | begin
99 | //Exit;// temp hack
100 | end;
101 | end;
102 | Assert.Fail('Error in "' + Expression + '" not found!');
103 | end;
104 |
105 | initialization
106 | TDUnitX.RegisterTestFixture(TMathParserTest);
107 |
108 | end.
109 |
110 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/MathParser.Parser.pas:
--------------------------------------------------------------------------------
1 | // copyright 2021-2021 crazzzypeter
2 | // license GNU 3.0
3 | unit MathParser.Parser;
4 |
5 | {$IFDEF FPC}{$MODE DELPHIUNICODE}{$ENDIF}
6 | {$SCOPEDENUMS ON}
7 |
8 | interface
9 |
10 | uses
11 | MathParser.Types, MathParser.Compiler, MathParser.VirtualMachine;
12 |
13 | type
14 | TMathParser = class
15 | private
16 | Code: TMathCode;
17 | VariablesDict: TMathVariables;
18 | Compiler: TMathCompiler;
19 | VirtualMachine: TMathVirtualMachine;
20 | FExpression: string;
21 | function GetVariable(const Name: string): Double;
22 | procedure SetVariable(const Name: string; const Value: Double);
23 | public
24 | constructor Create;
25 | destructor Destroy; override;
26 | // exp
27 | procedure CompileExpression(const AExpression: string);
28 | function Calculate: Double;
29 | property Expression: string read FExpression;
30 | // vars
31 | property Variables[const Name: string]: Double read GetVariable write SetVariable; default;
32 | procedure ClearAllVariables;
33 | procedure DefineVariable(const Name: string; const Value: Double);
34 | procedure DeleteVariable(const Name: string);
35 | function TryGetVariable(const Name: string; out VariableValue: Double): Boolean;
36 | // debug
37 | function PrintVariables: string;
38 | function PrintCode: string;
39 | end;
40 |
41 | implementation
42 |
43 | uses
44 | SysUtils, StrUtils;
45 |
46 | { TMathParser }
47 |
48 | constructor TMathParser.Create;
49 | begin
50 | Code := TMathCode.Create;
51 | VariablesDict := TMathVariables.Create;
52 |
53 | Compiler := TMathCompiler.Create(Code);
54 | VirtualMachine := TMathVirtualMachine.Create(Code, VariablesDict);
55 | end;
56 |
57 | destructor TMathParser.Destroy;
58 | begin
59 | Code.Free;
60 | VariablesDict.Free;
61 |
62 | Compiler.Free;
63 | VirtualMachine.Free;
64 | inherited;
65 | end;
66 |
67 | function TMathParser.Calculate: Double;
68 | begin
69 | Result := VirtualMachine.Execute;
70 | end;
71 |
72 | procedure TMathParser.ClearAllVariables;
73 | begin
74 | VariablesDict.Clear;
75 | end;
76 |
77 | procedure TMathParser.CompileExpression(const AExpression: string);
78 | begin
79 | FExpression := AExpression;
80 | Compiler.Compile(FExpression);
81 | end;
82 |
83 | procedure TMathParser.DefineVariable(const Name: string; const Value: Double);
84 | begin
85 | VariablesDict.AddOrSetValue(SysUtils.UpperCase(Name), Value);
86 | end;
87 |
88 | procedure TMathParser.DeleteVariable(const Name: string);
89 | begin
90 | if VariablesDict.ContainsKey(SysUtils.UpperCase(Name)) then
91 | begin
92 | VariablesDict.Remove(SysUtils.UpperCase(Name));
93 | end else
94 | raise Exception.Create('Variable "' + Name +'" not found');
95 | end;
96 |
97 | function TMathParser.GetVariable(const Name: string): Double;
98 | begin
99 | if not TryGetVariable(Name, Result) then
100 | raise Exception.Create('Variable "' + Name +'" not found');
101 | end;
102 |
103 | function TMathParser.PrintCode: string;
104 | begin
105 | Result := VirtualMachine.PrintCode;
106 | end;
107 |
108 | function TMathParser.PrintVariables: string;
109 | var
110 | I: Integer;
111 | Key: string;
112 | begin
113 | I := 0;
114 | for Key in VariablesDict.Keys do
115 | begin
116 | Result := Result + Key + ' = ' + FloatToStr(VariablesDict[Key], TFormatSettings.Invariant);
117 | if I <> VariablesDict.Keys.Count - 1 then
118 | Result := Result + sLineBreak;
119 | I := I + 1;
120 | end;
121 | end;
122 |
123 | procedure TMathParser.SetVariable(const Name: string; const Value: Double);
124 | begin
125 | VariablesDict.AddOrSetValue(SysUtils.UpperCase(Name), Value);
126 | end;
127 |
128 | function TMathParser.TryGetVariable(const Name: string; out VariableValue: Double): Boolean;
129 | begin
130 | if VariablesDict.ContainsKey(SysUtils.UpperCase(Name)) then
131 | begin
132 | VariableValue := VariablesDict[SysUtils.UpperCase(Name)];
133 | Result := True;
134 | end else
135 | Result := False;
136 | end;
137 |
138 | end.
139 |
--------------------------------------------------------------------------------
/MathParser.VirtualMachine.pas:
--------------------------------------------------------------------------------
1 | // copyright 2021-2021 crazzzypeter
2 | // license GNU 3.0
3 | unit MathParser.VirtualMachine;
4 |
5 | {$IFDEF FPC}{$MODE DELPHIUNICODE}{$ENDIF}
6 | {$SCOPEDENUMS ON}
7 |
8 | interface
9 |
10 | uses
11 | Classes, SysUtils, Generics.Collections, MathParser.Types;
12 |
13 | type
14 | TOpcodeKind = (
15 | PUSH,
16 | PUSH_VAR,
17 | PUSH_PI,
18 | ADD, SUB, MUL, &DIV, POW,
19 | NEG,
20 | SQRT,
21 | SIN,
22 | COS,
23 | TAN,
24 | ASIN,
25 | ACOS,
26 | ATAN,
27 | LOG,
28 | EXP,
29 | ABS,
30 | INT,
31 | FRAC
32 | );
33 |
34 | TOpcode = record
35 | Kind: TOpcodeKind;
36 | // optional
37 | Value: Double;
38 | Name: string;
39 | // for print "ASM"(no)
40 | function ToString: string;
41 | end;
42 |
43 | TMathCode = class(TList);
44 |
45 | TMathVariables = class(TDictionary);
46 |
47 | TMathVirtualMachine = class
48 | private
49 | Stack: TStack;
50 | Code: TMathCode;
51 | Variables: TMathVariables;
52 | function RunCode: Double;
53 | public
54 | constructor Create(const ACode: TMathCode; const AVariables: TMathVariables);
55 | destructor Destroy; override;
56 | function Execute: Double;
57 | function PrintCode: string;
58 | end;
59 |
60 | implementation
61 |
62 | uses
63 | Math;
64 |
65 | { TMathVM }
66 |
67 | constructor TMathVirtualMachine.Create(const ACode: TMathCode; const AVariables: TMathVariables);
68 | begin
69 | Stack := TStack.Create;
70 | Code := ACode;
71 | Variables := AVariables;
72 | end;
73 |
74 | destructor TMathVirtualMachine.Destroy;
75 | begin
76 | Stack.Free;
77 | inherited;
78 | end;
79 |
80 | function TMathVirtualMachine.RunCode: Double;
81 | var
82 | Opcode: TOpcode;
83 | A, B, Res: Double;
84 | begin
85 | try
86 | Stack.Clear;
87 |
88 | for Opcode in Code do
89 | begin
90 | case Opcode.Kind of
91 |
92 | TOpcodeKind.PUSH:
93 | begin
94 | Stack.Push(Opcode.Value);
95 | end;
96 |
97 | TOpcodeKind.PUSH_VAR:
98 | begin
99 | if not Variables.TryGetValue(Opcode.Name, A) then
100 | raise EVirtualMachineError.Create('VARIABLE "' + Opcode.Name + '" NOT FOUND');
101 | Stack.Push(A);
102 | end;
103 |
104 | TOpcodeKind.PUSH_PI:
105 | begin
106 | Stack.Push(System.Pi);
107 | end;
108 |
109 | TOpcodeKind.ADD:
110 | begin
111 | B := Stack.Pop;
112 | A := Stack.Pop;
113 | Res := A + B;
114 | Stack.Push(Res);
115 | end;
116 |
117 | TOpcodeKind.SUB:
118 | begin
119 | B := Stack.Pop;
120 | A := Stack.Pop;
121 | Res := A - B;
122 | Stack.Push(Res);
123 | end;
124 |
125 | TOpcodeKind.MUL:
126 | begin
127 | B := Stack.Pop;
128 | A := Stack.Pop;
129 | Res := A * B;
130 | Stack.Push(Res);
131 | end;
132 |
133 | TOpcodeKind.DIV:
134 | begin
135 | B := Stack.Pop;
136 | A := Stack.Pop;
137 | if B = 0.0 then
138 | raise EVirtualMachineError.Create('DIV BY ZERO');
139 | Res := A / B;
140 | Stack.Push(Res);
141 | end;
142 |
143 | TOpcodeKind.POW:
144 | begin
145 | B := Stack.Pop;
146 | A := Stack.Pop;
147 | Res := Math.Power(A, B);
148 | Stack.Push(Res);
149 | end;
150 |
151 | TOpcodeKind.NEG:
152 | begin
153 | A := Stack.Pop;
154 | Res := -A;
155 | Stack.Push(Res);
156 | end;
157 |
158 | TOpcodeKind.SQRT:
159 | begin
160 | A := Stack.Pop;
161 | if A < 0 then
162 | raise EVirtualMachineError.Create(
163 | 'BAD SQRT ARGUMENT (' + FloatToStr(A, TFormatSettings.Invariant) + ')');
164 | Res := System.Sqrt(A);
165 | Stack.Push(Res);
166 | end;
167 |
168 | TOpcodeKind.SIN:
169 | begin
170 | A := Stack.Pop;
171 | Res := System.Sin(A);
172 | Stack.Push(Res);
173 | end;
174 |
175 | TOpcodeKind.COS:
176 | begin
177 | A := Stack.Pop;
178 | Res := System.Cos(A);
179 | Stack.Push(Res);
180 | end;
181 |
182 | TOpcodeKind.TAN:
183 | begin
184 | A := Stack.Pop;
185 | Res := Math.Tan(A);
186 | Stack.Push(Res);
187 | end;
188 |
189 | TOpcodeKind.ASIN:
190 | begin
191 | A := Stack.Pop;
192 | if (A < -1) or (A > 1) then
193 | raise EVirtualMachineError.Create(
194 | 'BAD ASIN ARGUMENT (' + FloatToStr(A, TFormatSettings.Invariant) + ')');
195 | Res := Math.ArcSin(A);
196 | Stack.Push(Res);
197 | end;
198 |
199 | TOpcodeKind.ACOS:
200 | begin
201 | A := Stack.Pop;
202 | if (A < -1) or (A > 1) then
203 | raise EVirtualMachineError.Create(
204 | 'BAD ACOS ARGUMENT (' + FloatToStr(A, TFormatSettings.Invariant) + ')');
205 | Res := Math.ArcCos(A);
206 | Stack.Push(Res);
207 | end;
208 |
209 | TOpcodeKind.ATAN:
210 | begin
211 | A := Stack.Pop;
212 | Res := System.ArcTan(A);
213 | Stack.Push(Res);
214 | end;
215 |
216 | TOpcodeKind.LOG:
217 | begin
218 | A := Stack.Pop;
219 | if (A <= 0) then
220 | raise EVirtualMachineError.Create(
221 | 'BAD LOG ARGUMENT (' + FloatToStr(A, TFormatSettings.Invariant) + ')');
222 | Res := Math.Log10(A);
223 | Stack.Push(Res);
224 | end;
225 |
226 | TOpcodeKind.EXP:
227 | begin
228 | A := Stack.Pop;
229 | Res := System.Exp(A);
230 | Stack.Push(Res);
231 | end;
232 |
233 | TOpcodeKind.ABS:
234 | begin
235 | A := Stack.Pop;
236 | Res := System.Abs(A);
237 | Stack.Push(Res);
238 | end;
239 |
240 | TOpcodeKind.INT:
241 | begin
242 | A := Stack.Pop;
243 | Res := System.Int(A);
244 | Stack.Push(Res);
245 | end;
246 |
247 | TOpcodeKind.Frac:
248 | begin
249 | A := Stack.Pop;
250 | Res := System.Frac(A);
251 | Stack.Push(Res);
252 | end;
253 |
254 | else
255 | raise EVirtualMachineError.Create('BAD OPCODE KIND');
256 | end;
257 | end;
258 |
259 | Result := Stack.Peek;
260 | except
261 | on E: EListError do
262 | raise EVirtualMachineError.Create('STACK ERROR');
263 | end;
264 | end;
265 |
266 | function TMathVirtualMachine.Execute: Double;
267 | var
268 | Mask: {$IFNDEF FPC}TArithmeticExceptionMask{$ELSE}TFPUExceptionMask{$ENDIF};
269 | begin
270 | Mask := SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]);
271 | try
272 | Result := RunCode;
273 | finally
274 | SetExceptionMask(Mask);
275 | end;
276 | end;
277 |
278 | function TMathVirtualMachine.PrintCode: string;
279 | var
280 | I: Integer;
281 | begin
282 | for I := 0 to Code.Count - 1 do
283 | begin
284 | Result := Result + Code[I].ToString;
285 | if I <> Code.Count - 1 then
286 | Result := Result + sLineBreak;
287 | end;
288 | end;
289 |
290 | { TOpcode }
291 |
292 | function TOpcode.ToString: string;
293 | begin
294 | case Kind of
295 |
296 | TOpcodeKind.PUSH:
297 | Result := 'PUSH ' + FloatToStr(Value, TFormatSettings.Invariant);
298 |
299 | TOpcodeKind.PUSH_VAR:
300 | Result := 'PUSH_VAR "' + Name + '"';
301 |
302 | TOpcodeKind.PUSH_PI:
303 | Result := 'PUSH_PI';
304 |
305 | TOpcodeKind.ADD:
306 | Result := 'ADD';
307 |
308 | TOpcodeKind.SUB:
309 | Result := 'SUB';
310 |
311 | TOpcodeKind.MUL:
312 | Result := 'MUL';
313 |
314 | TOpcodeKind.&DIV:
315 | Result := 'DIV';
316 |
317 | TOpcodeKind.POW:
318 | Result := 'POW';
319 |
320 | TOpcodeKind.NEG:
321 | Result := 'NEG';
322 |
323 | TOpcodeKind.SQRT:
324 | Result := 'SQRT';
325 |
326 | TOpcodeKind.SIN:
327 | Result := 'SIN';
328 |
329 | TOpcodeKind.COS:
330 | Result := 'COS';
331 |
332 | TOpcodeKind.TAN:
333 | Result := 'TAN';
334 |
335 | TOpcodeKind.ASIN:
336 | Result := 'ASIN';
337 |
338 | TOpcodeKind.ACOS:
339 | Result := 'ACOS';
340 |
341 | TOpcodeKind.ATAN:
342 | Result := 'ATAN';
343 |
344 | TOpcodeKind.LOG:
345 | Result := 'LOG';
346 |
347 | TOpcodeKind.EXP:
348 | Result := 'EXP';
349 |
350 | TOpcodeKind.ABS:
351 | Result := 'ABS';
352 |
353 | TOpcodeKind.INT:
354 | Result := 'INT';
355 |
356 | TOpcodeKind.FRAC:
357 | Result := 'FRAC';
358 |
359 | else
360 | raise Exception.Create('BAD OPCODE KIND');
361 | end;
362 | end;
363 |
364 | end.
365 |
--------------------------------------------------------------------------------
/MathParser.Compiler.pas:
--------------------------------------------------------------------------------
1 | // copyright 2021-2021 crazzzypeter
2 | // license GNU 3.0
3 | unit MathParser.Compiler;
4 |
5 | {$IFDEF FPC}{$MODE DELPHIUNICODE}{$ENDIF}
6 | {$SCOPEDENUMS ON}
7 |
8 | interface
9 |
10 | uses
11 | Classes, SysUtils, Generics.Collections, MathParser.Types, MathParser.VirtualMachine;
12 |
13 | type
14 |
15 | // Plus := '+'
16 | // Minus := '-'
17 | // Multiply := '*'
18 | // Divide := '/'
19 |
20 | // := <'0'..'9'>[.]<'0'..'9'>[e<['0'..'9']>] ...
21 | // := <'('><')'> |
22 | // := [ | ] ...
23 | // := [ | ] ...
24 |
25 | TLogEvent = procedure (sender: TObject; str: string) of object;
26 |
27 | TTokenType = (Number, Plus, Minus, Multiply, Divide, Power, LeftBracket, RightBracket, &Function, Variable,
28 | Terminal);
29 |
30 | TMathCall = procedure() of object;
31 |
32 | TMathCompiler = class sealed
33 | private
34 | Expression: string;
35 | Code: TMathCode;
36 | Position: Integer;
37 | PrevPosition: Integer;
38 | Token: TTokenType;
39 | Value: Double;
40 | Identifier: string;
41 | StackLevel: Integer;
42 | CurentChar: Char;
43 | procedure NextChar;
44 | procedure NextToken;
45 | procedure SkipSpaces;
46 | procedure CompilePrimitive;
47 | procedure CompileAddAndSub;
48 | procedure CompileMulAndDiv;
49 | function CompileFunctionCall(const FunctionName: string): Boolean;
50 | procedure CompilePow;
51 | procedure RecursiveCall(const Func: TMathCall);
52 | public
53 | constructor Create(const ACode: TMathCode);
54 | destructor Destroy; override;
55 | procedure Compile(const AExpression: string);
56 | end;
57 |
58 | implementation
59 |
60 | uses
61 | Math;
62 |
63 | const
64 | MaxStackLevel = 32;
65 |
66 | sClosingParenthesisExpected = 'Closing parenthesis expected';
67 | sPrimitiveExpected = 'Primitive expected';
68 | sMissingOperator = 'Missing operator';
69 | sUnmatchedRightParenthesis = 'Unmatched right parenthesis';
70 | sUnexpectedSymbol = 'Unexpected symbol';
71 | sBadNumber = 'Bad number';
72 | sDivisionByZero = 'Division by zero';
73 | sBadFunctionArgument = 'Bad function argument';
74 | sBadFunction = 'Bad function';
75 | sOverflow = 'Overflow';
76 | sInternalError = 'Internal error!';
77 | sStackOverflow = 'Stack overflow';
78 | sContantNotFound = 'Constant not found';
79 |
80 | // helpers for opcodes
81 |
82 | function MakeOpPushValue(const Value: Double): TOpcode;
83 | begin
84 | Result.Kind := TOpcodeKind.PUSH;
85 | Result.Name := '%NOVAR%';
86 | Result.Value := Value;
87 | end;
88 |
89 | function MakeOpPushVariable(const Value: string): TOpcode;
90 | begin
91 | Result.Kind := TOpcodeKind.PUSH_VAR;
92 | Result.Name := Value;
93 | Result.Value := $DEADC0DE;
94 | end;
95 |
96 | function MakeOpOperation(const Value: TOpcodeKind): TOpcode;
97 | begin
98 | Result.Kind := Value;
99 | Result.Name := '%NOVAR%';
100 | Result.Value := $DEADC0DE;
101 | end;
102 |
103 | { TMathCompiler }
104 |
105 | procedure TMathCompiler.NextChar;
106 | begin
107 | Position := Position + 1;
108 | CurentChar := PChar(Expression)[Position];
109 | end;
110 |
111 | procedure TMathCompiler.NextToken;
112 | var
113 | TokenString: string;
114 | begin
115 | SkipSpaces;
116 |
117 | PrevPosition := Position;
118 |
119 | case CurentChar of
120 | '0'..'9':
121 | begin
122 | // for ex: 12.34e+56
123 | // 12
124 | Token := TTokenType.Number;
125 | while CharInSet(CurentChar, ['0'..'9']) do
126 | begin
127 | TokenString := TokenString + CurentChar;
128 | NextChar;
129 | end;
130 | // .
131 | if CurentChar = '.' then
132 | begin
133 | TokenString := TokenString + CurentChar;
134 | NextChar;
135 | end;
136 | // 34
137 | while CharInSet(CurentChar, ['0'..'9']) do
138 | begin
139 | TokenString := TokenString + CurentChar;
140 | NextChar;
141 | end;
142 | // e
143 | if CharInSet(CurentChar, ['e', 'E']) then
144 | begin
145 | TokenString := TokenString + CurentChar;
146 | NextChar;
147 | // +/-
148 | if CharInSet(CurentChar, ['-', '+']) then
149 | begin
150 | TokenString := TokenString + CurentChar;
151 | NextChar;
152 | end;
153 | // 56
154 | if not CharInSet(CurentChar, ['0'..'9']) then
155 | raise Exception.Create(sBadNumber);// error
156 | while CharInSet(CurentChar, ['0'..'9']) do
157 | begin
158 | TokenString := TokenString + CurentChar;
159 | NextChar;
160 | end;
161 | end;
162 |
163 | if not TryStrToFloat(TokenString, Value,
164 | {$IFNDEF FPC}TFormatSettings.Invariant{$ELSE}DefaultFormatSettings{$ENDIF}) then
165 | raise EMathCompillerError.Create(PrevPosition, sBadNumber);// error
166 | end;
167 | '+':
168 | begin
169 | Token := TTokenType.Plus;
170 | NextChar;
171 | end;
172 | '-':
173 | begin
174 | Token := TTokenType.Minus;
175 | NextChar;
176 | end;
177 | '*':
178 | begin
179 | Token := TTokenType.Multiply;
180 | NextChar;
181 | end;
182 | '/':
183 | begin
184 | Token := TTokenType.Divide;
185 | NextChar;
186 | end;
187 | '^':
188 | begin
189 | Token := TTokenType.Power;
190 | NextChar;
191 | end;
192 | '(':
193 | begin
194 | Token := TTokenType.LeftBracket;
195 | NextChar;
196 | end;
197 | ')':
198 | begin
199 | Token := TTokenType.RightBracket;
200 | NextChar;
201 | end;
202 | 'a'..'z', 'A'..'Z':
203 | begin
204 | Identifier := '';
205 | // abc
206 | while CharInSet(CurentChar, ['a'..'z', 'A'..'Z', '0'..'9']) do
207 | begin
208 | Identifier := Identifier + CurentChar;
209 | NextChar;
210 | end;
211 | // SkipSpaces;
212 | // (
213 | if CurentChar = '(' then
214 | begin
215 | Token := TTokenType.&Function;
216 | NextChar;
217 | end else
218 | Token := TTokenType.Variable;
219 | end;
220 | #0:
221 | begin
222 | Token := TTokenType.Terminal;
223 | end;
224 | else
225 | raise EMathCompillerError.Create(Position, sUnexpectedSymbol);// error
226 | end;
227 | end;
228 |
229 | procedure TMathCompiler.CompilePrimitive;
230 | var
231 | FunctionName: string;
232 | FunctionPos: Integer;
233 | begin
234 | //NextToken;
235 | case Token of
236 | // unary operators +/-
237 | TTokenType.Plus:
238 | begin
239 | NextToken;
240 | RecursiveCall(CompilePrimitive);
241 | end;
242 | TTokenType.Minus:
243 | begin
244 | NextToken;
245 | RecursiveCall(CompilePrimitive);
246 | Code.Add(MakeOpOperation(TOpcodeKind.NEG));
247 | end;
248 | // primitives
249 | TTokenType.Number:
250 | begin
251 | NextToken;
252 | //Result := Value;
253 | Code.Add(MakeOpPushValue(Value));
254 | end;
255 | TTokenType.LeftBracket:
256 | begin
257 | NextToken;
258 | RecursiveCall(CompileAddAndSub);
259 | if Token <> TTokenType.RightBracket then
260 | raise EMathCompillerError.Create(PrevPosition, sClosingParenthesisExpected);// error
261 | NextToken;
262 | end;
263 | TTokenType.&Function:
264 | begin
265 | FunctionName := UpperCase(Identifier);// hmmm...
266 | FunctionPos := PrevPosition;
267 | NextToken;
268 | RecursiveCall(CompileAddAndSub);
269 | if Token <> TTokenType.RightBracket then
270 | raise EMathCompillerError.Create(Position, sClosingParenthesisExpected);// error
271 |
272 | if not CompileFunctionCall(FunctionName) then
273 | raise EMathCompillerError.Create(FunctionPos, sBadFunction);
274 |
275 | NextToken;
276 | end;
277 | TTokenType.Variable:
278 | begin
279 | if UpperCase(Identifier) = 'PI' then
280 | Code.Add(MakeOpOperation(TOpcodeKind.PUSH_PI))
281 | else
282 | Code.Add(MakeOpPushVariable(UpperCase(Identifier)));
283 | NextToken;
284 | end
285 | else
286 | raise EMathCompillerError.Create(PrevPosition, sPrimitiveExpected);// error
287 | end;
288 | end;
289 |
290 | procedure TMathCompiler.CompilePow;
291 | begin
292 | CompilePrimitive;
293 |
294 | while True do
295 | begin
296 | case Token of
297 | // ^
298 | TTokenType.Power:
299 | begin
300 | NextToken;
301 | RecursiveCall(CompilePow);
302 | Code.Add(MakeOpOperation(TOpcodeKind.POW));
303 | end;
304 | else
305 | break;
306 | end;
307 | end;
308 | end;
309 |
310 | procedure TMathCompiler.CompileMulAndDiv;
311 | begin
312 | CompilePow;
313 |
314 | while True do
315 | begin
316 | case Token of
317 | // *
318 | TTokenType.Multiply:
319 | begin
320 | NextToken;
321 | CompilePow;
322 | Code.Add(MakeOpOperation(TOpcodeKind.MUL));
323 | end;
324 | // /
325 | TTokenType.Divide:
326 | begin
327 | NextToken;
328 | CompilePow;
329 | Code.Add(MakeOpOperation(TOpcodeKind.DIV));
330 | end;
331 | else
332 | break;
333 | end;
334 | end;
335 | end;
336 |
337 | procedure TMathCompiler.CompileAddAndSub;
338 | begin
339 | CompileMulAndDiv;
340 |
341 | while True do
342 | begin
343 | case Token of
344 | // +
345 | TTokenType.Plus:
346 | begin
347 | NextToken;
348 | CompileMulAndDiv;
349 | Code.Add(MakeOpOperation(TOpcodeKind.ADD));
350 | end;
351 | // -
352 | TTokenType.Minus:
353 | begin
354 | NextToken;
355 | CompileMulAndDiv;
356 | Code.Add(MakeOpOperation(TOpcodeKind.SUB));
357 | end;
358 | else
359 | break;
360 | end;
361 | end;
362 | end;
363 |
364 | procedure TMathCompiler.Compile(const AExpression: string);
365 | begin
366 | Code.Clear;
367 | Expression := AExpression;
368 | StackLevel := 0;
369 | Position := -1;// it's ok
370 | NextChar;
371 |
372 | // compile
373 | NextToken;
374 | CompileAddAndSub;
375 |
376 | // check errors
377 | if Token = TTokenType.RightBracket then
378 | raise EMathCompillerError.Create(PrevPosition, sUnmatchedRightParenthesis);// error
379 |
380 | if Token <> TTokenType.Terminal then
381 | raise EMathCompillerError.Create(PrevPosition, sMissingOperator);// error
382 | end;
383 |
384 | procedure TMathCompiler.RecursiveCall(const Func: TMathCall);
385 | begin
386 | StackLevel := StackLevel + 1;
387 | if StackLevel > MaxStackLevel then
388 | raise EMathCompillerError.Create(PrevPosition, sStackOverflow);
389 | Func();
390 | StackLevel := StackLevel - 1;
391 | end;
392 |
393 | constructor TMathCompiler.Create(const ACode: TMathCode);
394 | begin
395 | Code := ACode;
396 | end;
397 |
398 | destructor TMathCompiler.Destroy;
399 | begin
400 | inherited;
401 | end;
402 |
403 | function TMathCompiler.CompileFunctionCall(const FunctionName: string): Boolean;
404 | begin
405 | { } if FunctionName = 'SQRT' then
406 | Code.Add(MakeOpOperation(TOpcodeKind.SQRT))
407 | else if FunctionName = 'SIN' then
408 | Code.Add(MakeOpOperation(TOpcodeKind.SIN))
409 | else if FunctionName = 'COS' then
410 | Code.Add(MakeOpOperation(TOpcodeKind.COS))
411 | else if FunctionName = 'TAN' then
412 | Code.Add(MakeOpOperation(TOpcodeKind.TAN))
413 | else if FunctionName = 'ARCSIN' then
414 | Code.Add(MakeOpOperation(TOpcodeKind.ASIN))
415 | else if FunctionName = 'ARCCOS' then
416 | Code.Add(MakeOpOperation(TOpcodeKind.ACOS))
417 | else if FunctionName = 'ARCTAN' then
418 | Code.Add(MakeOpOperation(TOpcodeKind.ATAN))
419 | else if FunctionName = 'LOG' then
420 | Code.Add(MakeOpOperation(TOpcodeKind.LOG))
421 | else if FunctionName = 'EXP' then
422 | Code.Add(MakeOpOperation(TOpcodeKind.EXP))
423 | else if FunctionName = 'ABS' then
424 | Code.Add(MakeOpOperation(TOpcodeKind.ABS))
425 | else if FunctionName = 'INT' then
426 | Code.Add(MakeOpOperation(TOpcodeKind.INT))
427 | else if FunctionName = 'FRAC' then
428 | Code.Add(MakeOpOperation(TOpcodeKind.FRAC))
429 | else
430 | Exit(False);
431 |
432 | Result := True;
433 | end;
434 |
435 | procedure TMathCompiler.SkipSpaces;
436 | begin
437 | while CharInSet(CurentChar, [#9, ' ']) do
438 | begin
439 | NextChar;
440 | end;
441 | end;
442 |
443 | end.
444 |
445 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/MathParserProj.dproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | {EF6C6F42-4305-4695-8172-AB43B329CAE5}
4 | 19.3
5 | VCL
6 | True
7 | Debug
8 | Win32
9 | 3
10 | Application
11 | MathParserProj.dpr
12 |
13 |
14 | true
15 |
16 |
17 | true
18 | Base
19 | true
20 |
21 |
22 | true
23 | Base
24 | true
25 |
26 |
27 | true
28 | Base
29 | true
30 |
31 |
32 | true
33 | Cfg_1
34 | true
35 | true
36 |
37 |
38 | true
39 | Cfg_1
40 | true
41 | true
42 |
43 |
44 | true
45 | Base
46 | true
47 |
48 |
49 | true
50 | Cfg_2
51 | true
52 | true
53 |
54 |
55 | true
56 | Cfg_2
57 | true
58 | true
59 |
60 |
61 | .\$(Platform)\$(Config)
62 | .\$(Platform)\$(Config)
63 | false
64 | false
65 | false
66 | false
67 | false
68 | System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)
69 | $(BDS)\bin\delphi_PROJECTICON.ico
70 | $(BDS)\bin\Artwork\Windows\UWP\delphi_UwpDefault_44.png
71 | $(BDS)\bin\Artwork\Windows\UWP\delphi_UwpDefault_150.png
72 | MathParserProj
73 |
74 |
75 | vclwinx;DataSnapServer;fmx;emshosting;vclie;DbxCommonDriver;bindengine;IndyIPCommon;VCLRESTComponents;DBXMSSQLDriver;FireDACCommonODBC;emsclient;FireDACCommonDriver;appanalytics;IndyProtocols;vclx;IndyIPClient;dbxcds;vcledge;bindcompvclwinx;FmxTeeUI;EsVclComponents;emsedge;bindcompfmx;DBXFirebirdDriver;inetdb;ibmonitor;FireDACSqliteDriver;DbxClientDriver;FireDACASADriver;Tee;soapmidas;vclactnband;TeeUI;fmxFireDAC;dbexpress;FireDACInfxDriver;DBXMySQLDriver;VclSmp;inet;DataSnapCommon;vcltouch;fmxase;DBXOdbcDriver;dbrtl;FireDACDBXDriver;FireDACOracleDriver;fmxdae;TeeDB;FireDACMSAccDriver;CustomIPTransport;FireDACMSSQLDriver;DataSnapIndy10ServerTransport;DataSnapConnectors;vcldsnap;DBXInterBaseDriver;FireDACMongoDBDriver;IndySystem;FireDACTDataDriver;vcldb;ibxbindings;vclFireDAC;bindcomp;FireDACCommon;DataSnapServerMidas;FireDACODBCDriver;emsserverresource;IndyCore;RESTBackendComponents;bindcompdbx;rtl;FireDACMySQLDriver;FireDACADSDriver;RESTComponents;DBXSqliteDriver;vcl;IndyIPServer;dsnapxml;dsnapcon;DataSnapClient;DataSnapProviderClient;adortl;DBXSybaseASEDriver;DBXDb2Driver;vclimg;DataSnapFireDAC;emsclientfiredac;FireDACPgDriver;FireDAC;FireDACDSDriver;inetdbxpress;xmlrtl;tethering;ibxpress;bindcompvcl;dsnap;CloudService;DBXSybaseASADriver;DBXOracleDriver;FireDACDb2Driver;DBXInformixDriver;vclib;fmxobj;bindcompvclsmp;FMXTee;DataSnapNativeClient;DatasnapConnectorsFreePascal;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)
76 | Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)
77 | Debug
78 | true
79 | CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=
80 | 1033
81 | $(BDS)\bin\default_app.manifest
82 |
83 |
84 | vclwinx;DataSnapServer;fmx;emshosting;vclie;DbxCommonDriver;bindengine;IndyIPCommon;VCLRESTComponents;DBXMSSQLDriver;FireDACCommonODBC;emsclient;FireDACCommonDriver;appanalytics;IndyProtocols;vclx;IndyIPClient;dbxcds;vcledge;bindcompvclwinx;FmxTeeUI;EsVclComponents;emsedge;bindcompfmx;DBXFirebirdDriver;inetdb;ibmonitor;FireDACSqliteDriver;DbxClientDriver;FireDACASADriver;Tee;soapmidas;vclactnband;TeeUI;fmxFireDAC;dbexpress;FireDACInfxDriver;DBXMySQLDriver;VclSmp;inet;DataSnapCommon;vcltouch;fmxase;DBXOdbcDriver;dbrtl;FireDACDBXDriver;FireDACOracleDriver;fmxdae;TeeDB;FireDACMSAccDriver;CustomIPTransport;FireDACMSSQLDriver;DataSnapIndy10ServerTransport;DataSnapConnectors;vcldsnap;DBXInterBaseDriver;FireDACMongoDBDriver;IndySystem;FireDACTDataDriver;vcldb;ibxbindings;vclFireDAC;bindcomp;FireDACCommon;DataSnapServerMidas;FireDACODBCDriver;emsserverresource;IndyCore;RESTBackendComponents;bindcompdbx;rtl;FireDACMySQLDriver;FireDACADSDriver;RESTComponents;DBXSqliteDriver;vcl;IndyIPServer;dsnapxml;dsnapcon;DataSnapClient;DataSnapProviderClient;adortl;DBXSybaseASEDriver;DBXDb2Driver;vclimg;DataSnapFireDAC;emsclientfiredac;FireDACPgDriver;FireDAC;FireDACDSDriver;inetdbxpress;xmlrtl;tethering;ibxpress;bindcompvcl;dsnap;CloudService;DBXSybaseASADriver;DBXOracleDriver;FireDACDb2Driver;DBXInformixDriver;vclib;fmxobj;bindcompvclsmp;FMXTee;DataSnapNativeClient;DatasnapConnectorsFreePascal;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)
85 | Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;$(DCC_Namespace)
86 | Debug
87 | true
88 | CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=
89 | 1033
90 | $(BDS)\bin\default_app.manifest
91 |
92 |
93 | DEBUG;$(DCC_Define)
94 | true
95 | false
96 | true
97 | true
98 | true
99 | true
100 | true
101 |
102 |
103 | false
104 | true
105 | PerMonitorV2
106 | true
107 | 1033
108 |
109 |
110 | true
111 | PerMonitorV2
112 |
113 |
114 | false
115 | RELEASE;$(DCC_Define)
116 | 0
117 | 0
118 |
119 |
120 | true
121 | PerMonitorV2
122 |
123 |
124 | true
125 | PerMonitorV2
126 |
127 |
128 |
129 | MainSource
130 |
131 |
132 |
133 | dfm
134 |
135 |
136 |
137 |
138 |
139 |
140 | Base
141 |
142 |
143 | Cfg_1
144 | Base
145 |
146 |
147 | Cfg_2
148 | Base
149 |
150 |
151 |
152 | Delphi.Personality.12
153 | Application
154 |
155 |
156 |
157 | MathParserProj.dpr
158 |
159 |
160 | Embarcadero C++Builder Office 2000 Servers Package
161 | Embarcadero C++Builder Office XP Servers Package
162 | Microsoft Office 2000 Sample Automation Server Wrapper Components
163 | Microsoft Office XP Sample Automation Server Wrapper Components
164 |
165 |
166 |
167 |
168 |
169 | MathParserProj.exe
170 | true
171 |
172 |
173 |
174 |
175 | MathParserProj.exe
176 | true
177 |
178 |
179 |
180 |
181 | MathParserProj.rsm
182 | true
183 |
184 |
185 |
186 |
187 | 1
188 |
189 |
190 | Contents\MacOS
191 | 1
192 |
193 |
194 | 0
195 |
196 |
197 |
198 |
199 | classes
200 | 64
201 |
202 |
203 | classes
204 | 64
205 |
206 |
207 |
208 |
209 | res\xml
210 | 1
211 |
212 |
213 | res\xml
214 | 1
215 |
216 |
217 |
218 |
219 | library\lib\armeabi-v7a
220 | 1
221 |
222 |
223 |
224 |
225 | library\lib\armeabi
226 | 1
227 |
228 |
229 | library\lib\armeabi
230 | 1
231 |
232 |
233 |
234 |
235 | library\lib\armeabi-v7a
236 | 1
237 |
238 |
239 |
240 |
241 | library\lib\mips
242 | 1
243 |
244 |
245 | library\lib\mips
246 | 1
247 |
248 |
249 |
250 |
251 | library\lib\armeabi-v7a
252 | 1
253 |
254 |
255 | library\lib\arm64-v8a
256 | 1
257 |
258 |
259 |
260 |
261 | library\lib\armeabi-v7a
262 | 1
263 |
264 |
265 |
266 |
267 | res\drawable
268 | 1
269 |
270 |
271 | res\drawable
272 | 1
273 |
274 |
275 |
276 |
277 | res\values
278 | 1
279 |
280 |
281 | res\values
282 | 1
283 |
284 |
285 |
286 |
287 | res\values-v21
288 | 1
289 |
290 |
291 | res\values-v21
292 | 1
293 |
294 |
295 |
296 |
297 | res\values
298 | 1
299 |
300 |
301 | res\values
302 | 1
303 |
304 |
305 |
306 |
307 | res\drawable
308 | 1
309 |
310 |
311 | res\drawable
312 | 1
313 |
314 |
315 |
316 |
317 | res\drawable-xxhdpi
318 | 1
319 |
320 |
321 | res\drawable-xxhdpi
322 | 1
323 |
324 |
325 |
326 |
327 | res\drawable-xxxhdpi
328 | 1
329 |
330 |
331 | res\drawable-xxxhdpi
332 | 1
333 |
334 |
335 |
336 |
337 | res\drawable-ldpi
338 | 1
339 |
340 |
341 | res\drawable-ldpi
342 | 1
343 |
344 |
345 |
346 |
347 | res\drawable-mdpi
348 | 1
349 |
350 |
351 | res\drawable-mdpi
352 | 1
353 |
354 |
355 |
356 |
357 | res\drawable-hdpi
358 | 1
359 |
360 |
361 | res\drawable-hdpi
362 | 1
363 |
364 |
365 |
366 |
367 | res\drawable-xhdpi
368 | 1
369 |
370 |
371 | res\drawable-xhdpi
372 | 1
373 |
374 |
375 |
376 |
377 | res\drawable-mdpi
378 | 1
379 |
380 |
381 | res\drawable-mdpi
382 | 1
383 |
384 |
385 |
386 |
387 | res\drawable-hdpi
388 | 1
389 |
390 |
391 | res\drawable-hdpi
392 | 1
393 |
394 |
395 |
396 |
397 | res\drawable-xhdpi
398 | 1
399 |
400 |
401 | res\drawable-xhdpi
402 | 1
403 |
404 |
405 |
406 |
407 | res\drawable-xxhdpi
408 | 1
409 |
410 |
411 | res\drawable-xxhdpi
412 | 1
413 |
414 |
415 |
416 |
417 | res\drawable-xxxhdpi
418 | 1
419 |
420 |
421 | res\drawable-xxxhdpi
422 | 1
423 |
424 |
425 |
426 |
427 | res\drawable-small
428 | 1
429 |
430 |
431 | res\drawable-small
432 | 1
433 |
434 |
435 |
436 |
437 | res\drawable-normal
438 | 1
439 |
440 |
441 | res\drawable-normal
442 | 1
443 |
444 |
445 |
446 |
447 | res\drawable-large
448 | 1
449 |
450 |
451 | res\drawable-large
452 | 1
453 |
454 |
455 |
456 |
457 | res\drawable-xlarge
458 | 1
459 |
460 |
461 | res\drawable-xlarge
462 | 1
463 |
464 |
465 |
466 |
467 | res\values
468 | 1
469 |
470 |
471 | res\values
472 | 1
473 |
474 |
475 |
476 |
477 | 1
478 |
479 |
480 | Contents\MacOS
481 | 1
482 |
483 |
484 | 0
485 |
486 |
487 |
488 |
489 | Contents\MacOS
490 | 1
491 | .framework
492 |
493 |
494 | Contents\MacOS
495 | 1
496 | .framework
497 |
498 |
499 | Contents\MacOS
500 | 1
501 | .framework
502 |
503 |
504 | 0
505 |
506 |
507 |
508 |
509 | 1
510 | .dylib
511 |
512 |
513 | 1
514 | .dylib
515 |
516 |
517 | 1
518 | .dylib
519 |
520 |
521 | Contents\MacOS
522 | 1
523 | .dylib
524 |
525 |
526 | Contents\MacOS
527 | 1
528 | .dylib
529 |
530 |
531 | Contents\MacOS
532 | 1
533 | .dylib
534 |
535 |
536 | 0
537 | .dll;.bpl
538 |
539 |
540 |
541 |
542 | 1
543 | .dylib
544 |
545 |
546 | 1
547 | .dylib
548 |
549 |
550 | 1
551 | .dylib
552 |
553 |
554 | Contents\MacOS
555 | 1
556 | .dylib
557 |
558 |
559 | Contents\MacOS
560 | 1
561 | .dylib
562 |
563 |
564 | Contents\MacOS
565 | 1
566 | .dylib
567 |
568 |
569 | 0
570 | .bpl
571 |
572 |
573 |
574 |
575 | 0
576 |
577 |
578 | 0
579 |
580 |
581 | 0
582 |
583 |
584 | 0
585 |
586 |
587 | 0
588 |
589 |
590 | Contents\Resources\StartUp\
591 | 0
592 |
593 |
594 | Contents\Resources\StartUp\
595 | 0
596 |
597 |
598 | Contents\Resources\StartUp\
599 | 0
600 |
601 |
602 | 0
603 |
604 |
605 |
606 |
607 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
608 | 1
609 |
610 |
611 |
612 |
613 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
614 | 1
615 |
616 |
617 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
618 | 1
619 |
620 |
621 |
622 |
623 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
624 | 1
625 |
626 |
627 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
628 | 1
629 |
630 |
631 |
632 |
633 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
634 | 1
635 |
636 |
637 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
638 | 1
639 |
640 |
641 |
642 |
643 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
644 | 1
645 |
646 |
647 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
648 | 1
649 |
650 |
651 |
652 |
653 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
654 | 1
655 |
656 |
657 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
658 | 1
659 |
660 |
661 |
662 |
663 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
664 | 1
665 |
666 |
667 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
668 | 1
669 |
670 |
671 |
672 |
673 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
674 | 1
675 |
676 |
677 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
678 | 1
679 |
680 |
681 |
682 |
683 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
684 | 1
685 |
686 |
687 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
688 | 1
689 |
690 |
691 |
692 |
693 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
694 | 1
695 |
696 |
697 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
698 | 1
699 |
700 |
701 |
702 |
703 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
704 | 1
705 |
706 |
707 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
708 | 1
709 |
710 |
711 |
712 |
713 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
714 | 1
715 |
716 |
717 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
718 | 1
719 |
720 |
721 |
722 |
723 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
724 | 1
725 |
726 |
727 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
728 | 1
729 |
730 |
731 |
732 |
733 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
734 | 1
735 |
736 |
737 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
738 | 1
739 |
740 |
741 |
742 |
743 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
744 | 1
745 |
746 |
747 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
748 | 1
749 |
750 |
751 |
752 |
753 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
754 | 1
755 |
756 |
757 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
758 | 1
759 |
760 |
761 |
762 |
763 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
764 | 1
765 |
766 |
767 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
768 | 1
769 |
770 |
771 |
772 |
773 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
774 | 1
775 |
776 |
777 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
778 | 1
779 |
780 |
781 |
782 |
783 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
784 | 1
785 |
786 |
787 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
788 | 1
789 |
790 |
791 |
792 |
793 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
794 | 1
795 |
796 |
797 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
798 | 1
799 |
800 |
801 |
802 |
803 | 1
804 |
805 |
806 | 1
807 |
808 |
809 |
810 |
811 | ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
812 | 1
813 |
814 |
815 | ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
816 | 1
817 |
818 |
819 |
820 |
821 | ..\
822 | 1
823 |
824 |
825 | ..\
826 | 1
827 |
828 |
829 |
830 |
831 | 1
832 |
833 |
834 | 1
835 |
836 |
837 | 1
838 |
839 |
840 |
841 |
842 | ..\$(PROJECTNAME).launchscreen
843 | 64
844 |
845 |
846 | ..\$(PROJECTNAME).launchscreen
847 | 64
848 |
849 |
850 |
851 |
852 | 1
853 |
854 |
855 | 1
856 |
857 |
858 | 1
859 |
860 |
861 |
862 |
863 | ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
864 | 1
865 |
866 |
867 | ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
868 | 1
869 |
870 |
871 |
872 |
873 | ..\
874 | 1
875 |
876 |
877 | ..\
878 | 1
879 |
880 |
881 | ..\
882 | 1
883 |
884 |
885 |
886 |
887 | Contents
888 | 1
889 |
890 |
891 | Contents
892 | 1
893 |
894 |
895 | Contents
896 | 1
897 |
898 |
899 |
900 |
901 | Contents\Resources
902 | 1
903 |
904 |
905 | Contents\Resources
906 | 1
907 |
908 |
909 | Contents\Resources
910 | 1
911 |
912 |
913 |
914 |
915 | library\lib\armeabi-v7a
916 | 1
917 |
918 |
919 | library\lib\arm64-v8a
920 | 1
921 |
922 |
923 | 1
924 |
925 |
926 | 1
927 |
928 |
929 | 1
930 |
931 |
932 | 1
933 |
934 |
935 | Contents\MacOS
936 | 1
937 |
938 |
939 | Contents\MacOS
940 | 1
941 |
942 |
943 | Contents\MacOS
944 | 1
945 |
946 |
947 | 0
948 |
949 |
950 |
951 |
952 | library\lib\armeabi-v7a
953 | 1
954 |
955 |
956 |
957 |
958 | 1
959 |
960 |
961 | 1
962 |
963 |
964 |
965 |
966 | Assets
967 | 1
968 |
969 |
970 | Assets
971 | 1
972 |
973 |
974 |
975 |
976 | Assets
977 | 1
978 |
979 |
980 | Assets
981 | 1
982 |
983 |
984 |
985 |
986 |
987 |
988 |
989 |
990 |
991 |
992 |
993 |
994 |
995 |
996 |
997 | True
998 | True
999 |
1000 |
1001 | 12
1002 |
1003 |
1004 |
1005 |
1006 |
1007 |
--------------------------------------------------------------------------------
/Tests/Tests.dproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | {1B0A8394-899C-42D1-BDE2-2CFFEED1AB33}
4 | 19.3
5 | None
6 | True
7 | Debug
8 | Win32
9 | 1
10 | Console
11 | Tests.dpr
12 |
13 |
14 | true
15 |
16 |
17 | true
18 | Base
19 | true
20 |
21 |
22 | true
23 | Base
24 | true
25 |
26 |
27 | true
28 | Base
29 | true
30 |
31 |
32 | true
33 | Base
34 | true
35 |
36 |
37 | true
38 | Base
39 | true
40 |
41 |
42 | true
43 | Cfg_1
44 | true
45 | true
46 |
47 |
48 | true
49 | Base
50 | true
51 |
52 |
53 | .\$(Platform)\$(Config)
54 | .\$(Platform)\$(Config)
55 | false
56 | false
57 | false
58 | false
59 | false
60 | System;Xml;Data;Datasnap;Web;Soap;$(DCC_Namespace)
61 | true
62 | $(BDS)\bin\delphi_PROJECTICON.ico
63 | $(BDS)\bin\delphi_PROJECTICNS.icns
64 | $(DUnitX);$(DCC_UnitSearchPath)
65 | Tests
66 |
67 |
68 | fmx;DbxCommonDriver;bindengine;IndyIPCommon;emsclient;FireDACCommonDriver;IndyProtocols;IndyIPClient;dbxcds;FmxTeeUI;bindcompfmx;ibmonitor;FireDACSqliteDriver;DbxClientDriver;soapmidas;fmxFireDAC;dbexpress;inet;DataSnapCommon;dbrtl;FireDACDBXDriver;CustomIPTransport;DBXInterBaseDriver;IndySystem;ibxbindings;bindcomp;FireDACCommon;IndyCore;RESTBackendComponents;bindcompdbx;rtl;RESTComponents;DBXSqliteDriver;IndyIPServer;dsnapxml;DataSnapClient;DataSnapProviderClient;DataSnapFireDAC;emsclientfiredac;FireDAC;FireDACDSDriver;xmlrtl;tethering;ibxpress;dsnap;CloudService;FMXTee;DataSnapNativeClient;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)
69 | annotation-1.2.0.dex.jar;asynclayoutinflater-1.0.0.dex.jar;billing-4.0.0.dex.jar;browser-1.0.0.dex.jar;cloud-messaging.dex.jar;collection-1.0.0.dex.jar;coordinatorlayout-1.0.0.dex.jar;core-1.5.0-rc02.dex.jar;core-common-2.0.1.dex.jar;core-runtime-2.0.1.dex.jar;cursoradapter-1.0.0.dex.jar;customview-1.0.0.dex.jar;documentfile-1.0.0.dex.jar;drawerlayout-1.0.0.dex.jar;firebase-annotations-16.0.0.dex.jar;firebase-common-20.0.0.dex.jar;firebase-components-17.0.0.dex.jar;firebase-datatransport-18.0.0.dex.jar;firebase-encoders-17.0.0.dex.jar;firebase-encoders-json-18.0.0.dex.jar;firebase-iid-interop-17.1.0.dex.jar;firebase-installations-17.0.0.dex.jar;firebase-installations-interop-17.0.0.dex.jar;firebase-measurement-connector-19.0.0.dex.jar;firebase-messaging-22.0.0.dex.jar;fmx.dex.jar;fragment-1.0.0.dex.jar;google-play-licensing.dex.jar;interpolator-1.0.0.dex.jar;javax.inject-1.dex.jar;legacy-support-core-ui-1.0.0.dex.jar;legacy-support-core-utils-1.0.0.dex.jar;lifecycle-common-2.0.0.dex.jar;lifecycle-livedata-2.0.0.dex.jar;lifecycle-livedata-core-2.0.0.dex.jar;lifecycle-runtime-2.0.0.dex.jar;lifecycle-service-2.0.0.dex.jar;lifecycle-viewmodel-2.0.0.dex.jar;listenablefuture-1.0.dex.jar;loader-1.0.0.dex.jar;localbroadcastmanager-1.0.0.dex.jar;play-services-ads-20.1.0.dex.jar;play-services-ads-base-20.1.0.dex.jar;play-services-ads-identifier-17.0.0.dex.jar;play-services-ads-lite-20.1.0.dex.jar;play-services-base-17.5.0.dex.jar;play-services-basement-17.6.0.dex.jar;play-services-cloud-messaging-16.0.0.dex.jar;play-services-drive-17.0.0.dex.jar;play-services-games-21.0.0.dex.jar;play-services-location-18.0.0.dex.jar;play-services-maps-17.0.1.dex.jar;play-services-measurement-base-18.0.0.dex.jar;play-services-measurement-sdk-api-18.0.0.dex.jar;play-services-places-placereport-17.0.0.dex.jar;play-services-stats-17.0.0.dex.jar;play-services-tasks-17.2.0.dex.jar;print-1.0.0.dex.jar;room-common-2.1.0.dex.jar;room-runtime-2.1.0.dex.jar;slidingpanelayout-1.0.0.dex.jar;sqlite-2.0.1.dex.jar;sqlite-framework-2.0.1.dex.jar;swiperefreshlayout-1.0.0.dex.jar;transport-api-3.0.0.dex.jar;transport-backend-cct-3.0.0.dex.jar;transport-runtime-3.0.0.dex.jar;user-messaging-platform-1.0.0.dex.jar;versionedparcelable-1.1.1.dex.jar;viewpager-1.0.0.dex.jar;work-runtime-2.1.0.dex.jar
70 |
71 |
72 | fmx;DbxCommonDriver;bindengine;IndyIPCommon;emsclient;FireDACCommonDriver;IndyProtocols;IndyIPClient;dbxcds;FmxTeeUI;bindcompfmx;ibmonitor;FireDACSqliteDriver;DbxClientDriver;soapmidas;fmxFireDAC;dbexpress;inet;DataSnapCommon;dbrtl;FireDACDBXDriver;CustomIPTransport;DBXInterBaseDriver;IndySystem;ibxbindings;bindcomp;FireDACCommon;IndyCore;RESTBackendComponents;bindcompdbx;rtl;RESTComponents;DBXSqliteDriver;IndyIPServer;dsnapxml;DataSnapClient;DataSnapProviderClient;DataSnapFireDAC;emsclientfiredac;FireDAC;FireDACDSDriver;xmlrtl;tethering;ibxpress;dsnap;CloudService;FMXTee;DataSnapNativeClient;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)
73 | annotation-1.2.0.dex.jar;asynclayoutinflater-1.0.0.dex.jar;billing-4.0.0.dex.jar;browser-1.0.0.dex.jar;cloud-messaging.dex.jar;collection-1.0.0.dex.jar;coordinatorlayout-1.0.0.dex.jar;core-1.5.0-rc02.dex.jar;core-common-2.0.1.dex.jar;core-runtime-2.0.1.dex.jar;cursoradapter-1.0.0.dex.jar;customview-1.0.0.dex.jar;documentfile-1.0.0.dex.jar;drawerlayout-1.0.0.dex.jar;firebase-annotations-16.0.0.dex.jar;firebase-common-20.0.0.dex.jar;firebase-components-17.0.0.dex.jar;firebase-datatransport-18.0.0.dex.jar;firebase-encoders-17.0.0.dex.jar;firebase-encoders-json-18.0.0.dex.jar;firebase-iid-interop-17.1.0.dex.jar;firebase-installations-17.0.0.dex.jar;firebase-installations-interop-17.0.0.dex.jar;firebase-measurement-connector-19.0.0.dex.jar;firebase-messaging-22.0.0.dex.jar;fmx.dex.jar;fragment-1.0.0.dex.jar;google-play-licensing.dex.jar;interpolator-1.0.0.dex.jar;javax.inject-1.dex.jar;legacy-support-core-ui-1.0.0.dex.jar;legacy-support-core-utils-1.0.0.dex.jar;lifecycle-common-2.0.0.dex.jar;lifecycle-livedata-2.0.0.dex.jar;lifecycle-livedata-core-2.0.0.dex.jar;lifecycle-runtime-2.0.0.dex.jar;lifecycle-service-2.0.0.dex.jar;lifecycle-viewmodel-2.0.0.dex.jar;listenablefuture-1.0.dex.jar;loader-1.0.0.dex.jar;localbroadcastmanager-1.0.0.dex.jar;play-services-ads-20.1.0.dex.jar;play-services-ads-base-20.1.0.dex.jar;play-services-ads-identifier-17.0.0.dex.jar;play-services-ads-lite-20.1.0.dex.jar;play-services-base-17.5.0.dex.jar;play-services-basement-17.6.0.dex.jar;play-services-cloud-messaging-16.0.0.dex.jar;play-services-drive-17.0.0.dex.jar;play-services-games-21.0.0.dex.jar;play-services-location-18.0.0.dex.jar;play-services-maps-17.0.1.dex.jar;play-services-measurement-base-18.0.0.dex.jar;play-services-measurement-sdk-api-18.0.0.dex.jar;play-services-places-placereport-17.0.0.dex.jar;play-services-stats-17.0.0.dex.jar;play-services-tasks-17.2.0.dex.jar;print-1.0.0.dex.jar;room-common-2.1.0.dex.jar;room-runtime-2.1.0.dex.jar;slidingpanelayout-1.0.0.dex.jar;sqlite-2.0.1.dex.jar;sqlite-framework-2.0.1.dex.jar;swiperefreshlayout-1.0.0.dex.jar;transport-api-3.0.0.dex.jar;transport-backend-cct-3.0.0.dex.jar;transport-runtime-3.0.0.dex.jar;user-messaging-platform-1.0.0.dex.jar;versionedparcelable-1.1.1.dex.jar;viewpager-1.0.0.dex.jar;work-runtime-2.1.0.dex.jar
74 |
75 |
76 | vclwinx;DataSnapServer;fmx;emshosting;vclie;DbxCommonDriver;bindengine;IndyIPCommon;VCLRESTComponents;DBXMSSQLDriver;FireDACCommonODBC;emsclient;FireDACCommonDriver;appanalytics;IndyProtocols;vclx;IndyIPClient;dbxcds;vcledge;bindcompvclwinx;FmxTeeUI;EsVclComponents;emsedge;bindcompfmx;DBXFirebirdDriver;inetdb;ibmonitor;FireDACSqliteDriver;DbxClientDriver;FireDACASADriver;Tee;soapmidas;vclactnband;TeeUI;fmxFireDAC;dbexpress;FireDACInfxDriver;DBXMySQLDriver;VclSmp;inet;DataSnapCommon;vcltouch;fmxase;DBXOdbcDriver;dbrtl;FireDACDBXDriver;FireDACOracleDriver;fmxdae;TeeDB;FireDACMSAccDriver;CustomIPTransport;FireDACMSSQLDriver;DataSnapIndy10ServerTransport;DataSnapConnectors;vcldsnap;DBXInterBaseDriver;FireDACMongoDBDriver;IndySystem;FireDACTDataDriver;vcldb;ibxbindings;vclFireDAC;bindcomp;FireDACCommon;DataSnapServerMidas;FireDACODBCDriver;emsserverresource;IndyCore;RESTBackendComponents;bindcompdbx;rtl;FireDACMySQLDriver;FireDACADSDriver;RESTComponents;DBXSqliteDriver;vcl;IndyIPServer;dsnapxml;dsnapcon;DataSnapClient;DataSnapProviderClient;adortl;DBXSybaseASEDriver;DBXDb2Driver;vclimg;DataSnapFireDAC;emsclientfiredac;FireDACPgDriver;FireDAC;FireDACDSDriver;inetdbxpress;xmlrtl;tethering;ibxpress;bindcompvcl;dsnap;CloudService;DBXSybaseASADriver;DBXOracleDriver;FireDACDb2Driver;DBXInformixDriver;vclib;fmxobj;bindcompvclsmp;FMXTee;DataSnapNativeClient;DatasnapConnectorsFreePascal;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)
77 | Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)
78 | Debug
79 | CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=
80 | 1033
81 |
82 |
83 | vclwinx;DataSnapServer;fmx;emshosting;vclie;DbxCommonDriver;bindengine;IndyIPCommon;VCLRESTComponents;DBXMSSQLDriver;FireDACCommonODBC;emsclient;FireDACCommonDriver;appanalytics;IndyProtocols;vclx;IndyIPClient;dbxcds;vcledge;bindcompvclwinx;FmxTeeUI;EsVclComponents;emsedge;bindcompfmx;DBXFirebirdDriver;inetdb;ibmonitor;FireDACSqliteDriver;DbxClientDriver;FireDACASADriver;Tee;soapmidas;vclactnband;TeeUI;fmxFireDAC;dbexpress;FireDACInfxDriver;DBXMySQLDriver;VclSmp;inet;DataSnapCommon;vcltouch;fmxase;DBXOdbcDriver;dbrtl;FireDACDBXDriver;FireDACOracleDriver;fmxdae;TeeDB;FireDACMSAccDriver;CustomIPTransport;FireDACMSSQLDriver;DataSnapIndy10ServerTransport;DataSnapConnectors;vcldsnap;DBXInterBaseDriver;FireDACMongoDBDriver;IndySystem;FireDACTDataDriver;vcldb;ibxbindings;vclFireDAC;bindcomp;FireDACCommon;DataSnapServerMidas;FireDACODBCDriver;emsserverresource;IndyCore;RESTBackendComponents;bindcompdbx;rtl;FireDACMySQLDriver;FireDACADSDriver;RESTComponents;DBXSqliteDriver;vcl;IndyIPServer;dsnapxml;dsnapcon;DataSnapClient;DataSnapProviderClient;adortl;DBXSybaseASEDriver;DBXDb2Driver;vclimg;DataSnapFireDAC;emsclientfiredac;FireDACPgDriver;FireDAC;FireDACDSDriver;inetdbxpress;xmlrtl;tethering;ibxpress;bindcompvcl;dsnap;CloudService;DBXSybaseASADriver;DBXOracleDriver;FireDACDb2Driver;DBXInformixDriver;vclib;fmxobj;bindcompvclsmp;FMXTee;DataSnapNativeClient;DatasnapConnectorsFreePascal;soaprtl;soapserver;FireDACIBDriver;$(DCC_UsePackage)
84 |
85 |
86 | DEBUG;$(DCC_Define)
87 | true
88 | false
89 | true
90 | true
91 | true
92 | true
93 | true
94 |
95 |
96 | false
97 |
98 |
99 | false
100 | RELEASE;$(DCC_Define)
101 | 0
102 | 0
103 |
104 |
105 |
106 | MainSource
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 | Base
115 |
116 |
117 | Cfg_1
118 | Base
119 |
120 |
121 | Cfg_2
122 | Base
123 |
124 |
125 |
126 | Delphi.Personality.12
127 | Application
128 |
129 |
130 |
131 | Tests.dpr
132 |
133 |
134 |
135 |
136 |
137 | Tests.exe
138 | true
139 |
140 |
141 |
142 |
143 | true
144 |
145 |
146 |
147 |
148 | true
149 |
150 |
151 |
152 |
153 | true
154 |
155 |
156 |
157 |
158 | 1
159 |
160 |
161 | Contents\MacOS
162 | 1
163 |
164 |
165 | 0
166 |
167 |
168 |
169 |
170 | classes
171 | 64
172 |
173 |
174 | classes
175 | 64
176 |
177 |
178 |
179 |
180 | res\xml
181 | 1
182 |
183 |
184 | res\xml
185 | 1
186 |
187 |
188 |
189 |
190 | library\lib\armeabi-v7a
191 | 1
192 |
193 |
194 |
195 |
196 | library\lib\armeabi
197 | 1
198 |
199 |
200 | library\lib\armeabi
201 | 1
202 |
203 |
204 |
205 |
206 | library\lib\armeabi-v7a
207 | 1
208 |
209 |
210 |
211 |
212 | library\lib\mips
213 | 1
214 |
215 |
216 | library\lib\mips
217 | 1
218 |
219 |
220 |
221 |
222 | library\lib\armeabi-v7a
223 | 1
224 |
225 |
226 | library\lib\arm64-v8a
227 | 1
228 |
229 |
230 |
231 |
232 | library\lib\armeabi-v7a
233 | 1
234 |
235 |
236 |
237 |
238 | res\drawable
239 | 1
240 |
241 |
242 | res\drawable
243 | 1
244 |
245 |
246 |
247 |
248 | res\values
249 | 1
250 |
251 |
252 | res\values
253 | 1
254 |
255 |
256 |
257 |
258 | res\values-v21
259 | 1
260 |
261 |
262 | res\values-v21
263 | 1
264 |
265 |
266 |
267 |
268 | res\values
269 | 1
270 |
271 |
272 | res\values
273 | 1
274 |
275 |
276 |
277 |
278 | res\drawable
279 | 1
280 |
281 |
282 | res\drawable
283 | 1
284 |
285 |
286 |
287 |
288 | res\drawable-xxhdpi
289 | 1
290 |
291 |
292 | res\drawable-xxhdpi
293 | 1
294 |
295 |
296 |
297 |
298 | res\drawable-xxxhdpi
299 | 1
300 |
301 |
302 | res\drawable-xxxhdpi
303 | 1
304 |
305 |
306 |
307 |
308 | res\drawable-ldpi
309 | 1
310 |
311 |
312 | res\drawable-ldpi
313 | 1
314 |
315 |
316 |
317 |
318 | res\drawable-mdpi
319 | 1
320 |
321 |
322 | res\drawable-mdpi
323 | 1
324 |
325 |
326 |
327 |
328 | res\drawable-hdpi
329 | 1
330 |
331 |
332 | res\drawable-hdpi
333 | 1
334 |
335 |
336 |
337 |
338 | res\drawable-xhdpi
339 | 1
340 |
341 |
342 | res\drawable-xhdpi
343 | 1
344 |
345 |
346 |
347 |
348 | res\drawable-mdpi
349 | 1
350 |
351 |
352 | res\drawable-mdpi
353 | 1
354 |
355 |
356 |
357 |
358 | res\drawable-hdpi
359 | 1
360 |
361 |
362 | res\drawable-hdpi
363 | 1
364 |
365 |
366 |
367 |
368 | res\drawable-xhdpi
369 | 1
370 |
371 |
372 | res\drawable-xhdpi
373 | 1
374 |
375 |
376 |
377 |
378 | res\drawable-xxhdpi
379 | 1
380 |
381 |
382 | res\drawable-xxhdpi
383 | 1
384 |
385 |
386 |
387 |
388 | res\drawable-xxxhdpi
389 | 1
390 |
391 |
392 | res\drawable-xxxhdpi
393 | 1
394 |
395 |
396 |
397 |
398 | res\drawable-small
399 | 1
400 |
401 |
402 | res\drawable-small
403 | 1
404 |
405 |
406 |
407 |
408 | res\drawable-normal
409 | 1
410 |
411 |
412 | res\drawable-normal
413 | 1
414 |
415 |
416 |
417 |
418 | res\drawable-large
419 | 1
420 |
421 |
422 | res\drawable-large
423 | 1
424 |
425 |
426 |
427 |
428 | res\drawable-xlarge
429 | 1
430 |
431 |
432 | res\drawable-xlarge
433 | 1
434 |
435 |
436 |
437 |
438 | res\values
439 | 1
440 |
441 |
442 | res\values
443 | 1
444 |
445 |
446 |
447 |
448 | 1
449 |
450 |
451 | Contents\MacOS
452 | 1
453 |
454 |
455 | 0
456 |
457 |
458 |
459 |
460 | Contents\MacOS
461 | 1
462 | .framework
463 |
464 |
465 | Contents\MacOS
466 | 1
467 | .framework
468 |
469 |
470 | Contents\MacOS
471 | 1
472 | .framework
473 |
474 |
475 | 0
476 |
477 |
478 |
479 |
480 | 1
481 | .dylib
482 |
483 |
484 | 1
485 | .dylib
486 |
487 |
488 | 1
489 | .dylib
490 |
491 |
492 | Contents\MacOS
493 | 1
494 | .dylib
495 |
496 |
497 | Contents\MacOS
498 | 1
499 | .dylib
500 |
501 |
502 | Contents\MacOS
503 | 1
504 | .dylib
505 |
506 |
507 | 0
508 | .dll;.bpl
509 |
510 |
511 |
512 |
513 | 1
514 | .dylib
515 |
516 |
517 | 1
518 | .dylib
519 |
520 |
521 | 1
522 | .dylib
523 |
524 |
525 | Contents\MacOS
526 | 1
527 | .dylib
528 |
529 |
530 | Contents\MacOS
531 | 1
532 | .dylib
533 |
534 |
535 | Contents\MacOS
536 | 1
537 | .dylib
538 |
539 |
540 | 0
541 | .bpl
542 |
543 |
544 |
545 |
546 | 0
547 |
548 |
549 | 0
550 |
551 |
552 | 0
553 |
554 |
555 | 0
556 |
557 |
558 | 0
559 |
560 |
561 | Contents\Resources\StartUp\
562 | 0
563 |
564 |
565 | Contents\Resources\StartUp\
566 | 0
567 |
568 |
569 | Contents\Resources\StartUp\
570 | 0
571 |
572 |
573 | 0
574 |
575 |
576 |
577 |
578 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
579 | 1
580 |
581 |
582 |
583 |
584 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
585 | 1
586 |
587 |
588 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
589 | 1
590 |
591 |
592 |
593 |
594 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
595 | 1
596 |
597 |
598 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
599 | 1
600 |
601 |
602 |
603 |
604 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
605 | 1
606 |
607 |
608 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
609 | 1
610 |
611 |
612 |
613 |
614 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
615 | 1
616 |
617 |
618 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
619 | 1
620 |
621 |
622 |
623 |
624 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
625 | 1
626 |
627 |
628 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
629 | 1
630 |
631 |
632 |
633 |
634 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
635 | 1
636 |
637 |
638 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
639 | 1
640 |
641 |
642 |
643 |
644 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
645 | 1
646 |
647 |
648 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
649 | 1
650 |
651 |
652 |
653 |
654 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
655 | 1
656 |
657 |
658 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
659 | 1
660 |
661 |
662 |
663 |
664 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
665 | 1
666 |
667 |
668 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
669 | 1
670 |
671 |
672 |
673 |
674 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
675 | 1
676 |
677 |
678 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
679 | 1
680 |
681 |
682 |
683 |
684 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
685 | 1
686 |
687 |
688 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
689 | 1
690 |
691 |
692 |
693 |
694 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
695 | 1
696 |
697 |
698 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
699 | 1
700 |
701 |
702 |
703 |
704 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
705 | 1
706 |
707 |
708 | ..\$(PROJECTNAME).launchscreen\Assets\LaunchScreenImage.imageset
709 | 1
710 |
711 |
712 |
713 |
714 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
715 | 1
716 |
717 |
718 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
719 | 1
720 |
721 |
722 |
723 |
724 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
725 | 1
726 |
727 |
728 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
729 | 1
730 |
731 |
732 |
733 |
734 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
735 | 1
736 |
737 |
738 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
739 | 1
740 |
741 |
742 |
743 |
744 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
745 | 1
746 |
747 |
748 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
749 | 1
750 |
751 |
752 |
753 |
754 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
755 | 1
756 |
757 |
758 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
759 | 1
760 |
761 |
762 |
763 |
764 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
765 | 1
766 |
767 |
768 | ..\$(PROJECTNAME).launchscreen\Assets\AppIcon.appiconset
769 | 1
770 |
771 |
772 |
773 |
774 | 1
775 |
776 |
777 | 1
778 |
779 |
780 |
781 |
782 | ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
783 | 1
784 |
785 |
786 | ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
787 | 1
788 |
789 |
790 |
791 |
792 | ..\
793 | 1
794 |
795 |
796 | ..\
797 | 1
798 |
799 |
800 |
801 |
802 | 1
803 |
804 |
805 | 1
806 |
807 |
808 | 1
809 |
810 |
811 |
812 |
813 | ..\$(PROJECTNAME).launchscreen
814 | 64
815 |
816 |
817 | ..\$(PROJECTNAME).launchscreen
818 | 64
819 |
820 |
821 |
822 |
823 | 1
824 |
825 |
826 | 1
827 |
828 |
829 | 1
830 |
831 |
832 |
833 |
834 | ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
835 | 1
836 |
837 |
838 | ..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF
839 | 1
840 |
841 |
842 |
843 |
844 | ..\
845 | 1
846 |
847 |
848 | ..\
849 | 1
850 |
851 |
852 | ..\
853 | 1
854 |
855 |
856 |
857 |
858 | Contents
859 | 1
860 |
861 |
862 | Contents
863 | 1
864 |
865 |
866 | Contents
867 | 1
868 |
869 |
870 |
871 |
872 | Contents\Resources
873 | 1
874 |
875 |
876 | Contents\Resources
877 | 1
878 |
879 |
880 | Contents\Resources
881 | 1
882 |
883 |
884 |
885 |
886 | library\lib\armeabi-v7a
887 | 1
888 |
889 |
890 | library\lib\arm64-v8a
891 | 1
892 |
893 |
894 | 1
895 |
896 |
897 | 1
898 |
899 |
900 | 1
901 |
902 |
903 | 1
904 |
905 |
906 | Contents\MacOS
907 | 1
908 |
909 |
910 | Contents\MacOS
911 | 1
912 |
913 |
914 | Contents\MacOS
915 | 1
916 |
917 |
918 | 0
919 |
920 |
921 |
922 |
923 | library\lib\armeabi-v7a
924 | 1
925 |
926 |
927 |
928 |
929 | 1
930 |
931 |
932 | 1
933 |
934 |
935 |
936 |
937 | Assets
938 | 1
939 |
940 |
941 | Assets
942 | 1
943 |
944 |
945 |
946 |
947 | Assets
948 | 1
949 |
950 |
951 | Assets
952 | 1
953 |
954 |
955 |
956 |
957 |
958 |
959 |
960 |
961 |
962 |
963 |
964 |
965 |
966 |
967 |
968 | False
969 | False
970 | True
971 | False
972 |
973 |
974 | 12
975 |
976 |
977 |
978 |
979 |
980 |
--------------------------------------------------------------------------------