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:
parent
b670be61fe
commit
d3ad53a7a3
25
hmt_parser/main.pas
Normal file
25
hmt_parser/main.pas
Normal 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user