审计脚本语言(Audit script language).docVIP

  • 14
  • 0
  • 约1.01万字
  • 约 23页
  • 2017-10-06 发布于河南
  • 举报
审计脚本语言(Audit script language)

审计脚本语言(Audit script language) 1, audit script language introduction The audit scripting language is based on PASCAL language to develop a programming language that turns into an auditors writing audit method. The main audit scripting language is a subset of PASCAL language, based on the database operation, the graphics output and a series of function expansion, its function is simple, clear, readable, the essential part of the general high-level language (such as: read, write, while-do, if-then, call, begin-end, array, process. Function assignment, etc.) 2, grammar rules A) bound The 1. variables, identifiers, functions, and process names are all beginning with the English alphabet. You can use English and numbers. 2. variables, identifiers, functions, and process names are insensitive to case size. 3., a procedure, variables, processes can not exceed 100. 4. digit maximum digit is 24 bits. The 5. process is nested no more than 3 layers. 6. lines of code no more than 5000 characters B) syntax rules 1. syntax rules approximate to the Pascal language. 2. any program that exceeds 1 lines requires the use of begin... The.End statement is bound to indicate where to begin and where to end. 3. each line uses a semicolon as the terminator. 4., the whole program to end. as the end The 5. variable is defined before the begin of the main program. 6. assignment statement uses: = = operator C) parameter scope The procedure can refer to the local parameters defined by itself, as well as the local parameters of the outer process definition that surround it. For example, in process P, you can use constants, C, D, and variables a defined outside of the procedure. Const, c=10, d=100; Var a; Procedure p; Begin If a10 then Write (C); If a10 then Write (D); End; Begin Read (a); Call p; End. (d) procedures for example (circle area calculation procedures) Const p=3 / / constant specification Var s, R; / / variable description Begin / / the main body of the program start Read (R)

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档