Ignore:
Timestamp:
Apr 17, 2020, 12:09:15 AM (5 years ago)
Author:
chronos
Message:
  • Added: Support for String, Integer and Boolean types.
  • Added: Support for more system defined functions..
  • Added: Support for line comments.
  • Added: For-To-Do construction.
  • Added: Defined function parameters and and parsing function calls with parameters.
  • Modified: Improved handling of expressions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/interpreter2/UFormMain.pas

    r201 r202  
    66
    77uses
    8   Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, USource;
     8  Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,
     9  SynHighlighterPas, SynEdit, USource;
    910
    1011type
     
    1718    Label1: TLabel;
    1819    Label2: TLabel;
    19     MemoSource: TMemo;
    2020    MemoLog: TMemo;
    2121    MemoOutput: TMemo;
     22    SynEditSource: TSynEdit;
     23    SynFreePascalSyn1: TSynFreePascalSyn;
    2224    procedure ButtonCompileClick(Sender: TObject);
    2325    procedure ButtonRunClick(Sender: TObject);
     
    5355  if not Initialized then begin
    5456    Initialized := True;
    55     MemoSource.Lines.LoadFromFile('Test.pas');
     57    SynEditSource.Lines.LoadFromFile('Test.pas');
    5658    ButtonRun.Click;
    5759  end;
     
    9597  Parser := TParser.Create;
    9698  Parser.OnError := InterpreterError;
    97   Parser.Source := MemoSource.Lines.Text;
     99  Parser.Source := SynEditSource.Lines.Text;
    98100  Parser.Parse;
    99101  if Assigned(Prog) then Prog.Free;
Note: See TracChangeset for help on using the changeset viewer.