pascal/test/sysinfo.pas · 770 字节 · 下载原文
{ sysinfo.pas: CALLJSON(#573) self-test - call sysinfo and print the JSON result.
NOTE (corrected 2026-10-10): this used to claim the Pascal lexer accepts only
ASCII inside comments. That is no longer true -- measured, Chinese text and
full-width punctuation in a brace comment compile fine. This very file already
writes Chinese in the comment a few lines below, and Examples/pascal/test/libs.pas
has a header written that way, so no special care is needed. }
program p;
{ ui_call_json_s / ui_call_json_print 声明在 Lib/pascal/vml_ui.pas(宿主 UI 库)。
ui_call_json_s / ui_call_json_print are declared in Lib/pascal/vml_ui.pas (host UI library). }
uses vml_ui;
begin
ui_call_json_s('sysinfo', '');
ui_call_json_print();
end.