Merge branch 'master' into features/patterns
# Conflicts: # Parsers/PascalABCParserNewSaushkin/ABCPascal.cs # Parsers/PascalABCParserNewSaushkin/ABCPascalYacc.cs
This commit is contained in:
commit
43ee820329
16
InstallerSamples/Graphics/GraphWPF/DrawCircleByMouse.pas
Normal file
16
InstallerSamples/Graphics/GraphWPF/DrawCircleByMouse.pas
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
uses GraphWPF;
|
||||
|
||||
begin
|
||||
var x1,y1: real;
|
||||
var c: Color;
|
||||
OnMouseDown := procedure(x,y,mb) -> begin
|
||||
(x1,y1) := (x,y);
|
||||
c := RandomColor;
|
||||
end;
|
||||
OnMouseMove := procedure(x,y,mb) -> if mb=1 then
|
||||
begin
|
||||
var r := Sqrt(Sqr(x1-x)+Sqr(y1-y));
|
||||
Window.Clear;
|
||||
Circle(x1,y1,r,c);
|
||||
end;
|
||||
end.
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
// This CSharp output file generated by Gardens Point LEX
|
||||
// Version: 1.1.3.301
|
||||
// Machine: ALEXANDER-PC
|
||||
// DateTime: 17.05.2018 0:11:00
|
||||
// DateTime: 17.05.2018 0:16:03
|
||||
// UserName: Alexander
|
||||
// GPLEX input file <ABCPascal.lex>
|
||||
// GPLEX frame file <embedded resource>
|
||||
|
|
|
|||
|
|
@ -865,7 +865,7 @@ const_variable
|
|||
{ $$ = $1; }
|
||||
| typeof_expr
|
||||
{ $$ = $1; }
|
||||
| tkRoundOpen const_expr tkRoundClose
|
||||
/* | tkRoundOpen const_expr tkRoundClose
|
||||
{
|
||||
if (!parsertools.build_tree_for_formatter)
|
||||
{
|
||||
|
|
@ -873,7 +873,7 @@ const_variable
|
|||
$$ = $2;
|
||||
}
|
||||
else $$ = new bracket_expr($2, @$);
|
||||
}
|
||||
}*/
|
||||
| const_variable const_variable_2
|
||||
{
|
||||
$$ = NewConstVariable($1, $2, @$);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -62,7 +62,7 @@ procedure InvokeP(p: procedure(r: real); r: real) := Invoke(p,r);
|
|||
|
||||
procedure Invoke(d: ()->()) := app.Dispatcher.Invoke(d);
|
||||
|
||||
function Invoke<T>(d: Func0<T>): T := app.Dispatcher.Invoke&<T>(d);
|
||||
function Invoke<T>(d: Func0<T>): T := T(app.Dispatcher.Invoke(d));
|
||||
function InvokeReal(f: ()->real): real := Invoke&<Real>(f);
|
||||
function InvokeString(f: ()->string): string := Invoke&<string>(f);
|
||||
function InvokeBoolean(d: Func0<boolean>): boolean := Invoke&<boolean>(d);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -62,7 +62,7 @@ procedure InvokeP(p: procedure(r: real); r: real) := Invoke(p,r);
|
|||
|
||||
procedure Invoke(d: ()->()) := app.Dispatcher.Invoke(d);
|
||||
|
||||
function Invoke<T>(d: Func0<T>): T := app.Dispatcher.Invoke&<T>(d);
|
||||
function Invoke<T>(d: Func0<T>): T := T(app.Dispatcher.Invoke(d));
|
||||
function InvokeReal(f: ()->real): real := Invoke&<Real>(f);
|
||||
function InvokeString(f: ()->string): string := Invoke&<string>(f);
|
||||
function InvokeBoolean(d: Func0<boolean>): boolean := Invoke&<boolean>(d);
|
||||
|
|
|
|||
Loading…
Reference in a new issue