2
0
mirror of https://github.com/dpethes/rerogue.git synced 2025-06-07 18:58:32 +02:00

hmt parser: add main program

This commit is contained in:
dpethes 2014-10-15 23:43:57 +02:00
parent b670be61fe
commit d3ad53a7a3

25
hmt_parser/main.pas Normal file
View File

@ -0,0 +1,25 @@
program parse_hmt;
{$mode objfpc}{$H+}
uses
hmt_parser;
var
fname: string;
begin
if ParamCount < 1 then begin
writeln ('no input file specified');
exit;
end;
fname := ParamStr(1);
writeln('parsing file: ', fname);
try
ParseHmtFile(fname);
except
writeln('parsing failed!');
end;
writeln('done.');
end.