审计脚本语言(国外英文资料).docVIP

  • 3
  • 0
  • 约 24页
  • 2017-06-05 发布于河南
  • 举报
审计脚本语言(国外英文资料)

审计脚本语言 Introduction of the audit scripting language The audit scripting language is based on the PASCAL language foundation to develop a programming language that turns into an auditors writing audit method. Audit scripting language main body is PASCAL language subset, on the basis of the database operation, output chart and a series of function extension, its function is simple, the structure is clear, readable, have an essential part of the general high-level language (such as: read, write, while to-do, if-then, call, begin and end, array, process, function, assignment statements, etc.) Grammar rules A) constraint The names of variables, identifiers, functions, and process names begin with the English letter, which can be used in English and numerals. The variables, identifiers, functions, and process names are case-insensitive. There are no more than 100 variables in a program. The largest number is 24. The process has no more than three floors. A one-liner is not more than 5,000 characters B) grammar rules The grammar rules are similar to the Pascal language. Any program that has more than one line should begin using begin... The.end statement is bound to indicate where it started and where it ended. Each line program ends with a semicolon. The whole program ends with end Variables are defined before the begin of the main program. The assignment statement is used: = the operator C) parameter scope The process can refer to a local parameter that is defined by itself, or it can reference local parameters that surround it. For example: in process p, you can use the constant c, d, and variable that are defined outside the process. Const c = 10, d = 100; Var a; Procedure p; The begin If a 10 then Write (c); If a 10 then Write (d); The end; The begin Read (a); Call p; The end. D) program example (the circular area calculator) Const p = 3 / / constant explanation Var s, r; / / the variable declaration section Begin the begin / / program body Read (r); / / r

文档评论(0)

1亿VIP精品文档

相关文档