Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pascal samples #1358

Merged
merged 1 commit into from
Sep 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions test/samples/sample.pascal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
program GreetingsNumberOfTimes;

{$APPTYPE CONSOLE}

{$R *.res}

uses
System.SysUtils;

var
greetingsMessage: string;
numberOfTimes, i: integer;

begin
try
{ TODO -oUser -cConsole Main : Insert code here }
greetingsMessage := 'Hello World!';
numberOfTimes := 10;

for i := 1 to numberOfTimes do
begin
Writeln(greetingsMessage);
end;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.

28 changes: 28 additions & 0 deletions website/index/samples/sample.pascal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
program GreetingsNumberOfTimes;

{$APPTYPE CONSOLE}

{$R *.res}

uses
System.SysUtils;

var
greetingsMessage: string;
numberOfTimes, i: integer;

begin
try
{ TODO -oUser -cConsole Main : Insert code here }
greetingsMessage := 'Hello World!';
numberOfTimes := 10;

for i := 1 to numberOfTimes do
begin
Writeln(greetingsMessage);
end;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.