1 ACL: Automated Command Line Cheow Lip Goh (Paul) December 18, 20062Contents CONTENTS.................................................................................................................................................. 2 CHAPTER 1 – INTRODUCTION TO ACL.............................................................................................. 4 1.1 DESIGN OF ACL ................................................................................................................................... 4 1.1.1 Very Simple and Familiar Syntax and Semantics ........................................................................ 4 1.1.2 Cross Platform Compatibility...................................................................................................... 4 1.1.3 ACL is Interpreted........................................................................................................................ 4 CHAPTER 2 – TUTORIAL ........................................................................................................................ 5 2.1 RUNNING THE ACL PROGRAM ............................................................................................................. 5 2.2 A SIMPLE EXAMPLE.............................................................................................................................. 5 CHAPTER 3 – LANGUAGE REFERENCE MANUAL .......................................................................... 8 3.1 LEXICAL CONVENTIONS ....................................................................................................................... 8 3.1.1 Comments..................................................................................................................................... 8 3.1.2 Identifiers..................................................................................................................................... 8 3.1.3 Keywords ..................................................................................................................................... 8 3.1.4 Constants ..................................................................................................................................... 8 3.1.4.1 Integer Constants................................................................................................................................... 8 3.1.4.2 String Constants .................................................................................................................................... 9 3.1.5 Other Tokens................................................................................................................................ 9 3.2 EXPRESSIONS........................................................................................................................................ 9 3.2.1 Primary Expressions.................................................................................................................... 9 3.2.1.1 Identifiers .............................................................................................................................................. 9 3.2.1.2 Constants............................................................................................................................................... 9 3.2.1.3 Parenthesized Expressions .................................................................................................................... 9 3.2.2 Arithmetic Expressions .............................................................................................................. 10 3.2.2.1 Binary Operators................................................................................................................................. 10 3.2.3 Relational Expressions............................................................................................................... 10 3.2.4 Assignment Expressions............................................................................................................. 10 3.3 STATEMENTS ...................................................................................................................................... 11 3.3.1 Expression Statement................................................................................................................. 11 3.3.2 Compound Statement ................................................................................................................. 11 3.3.3 Conditional Statement................................................................................................................ 11 3.3.4 While Statement ......................................................................................................................... 11 3.3.5 For Statement............................................................................................................................. 12 3.3.6 Break Statement ......................................................................................................................... 12 3.3.7 Continue Statement.................................................................................................................... 12 3.3.8 Return Statement........................................................................................................................ 12 3.4 FUNCTION DEFINITION ....................................................................................................................... 13 3.5 BUILT-IN FUNCTIONS.......................................................................................................................... 13 3.5.1 Session Function........................................................................................................................ 13 3.5.2 Receive Function........................................................................................................................ 13 3.5.3 Send Function ............................................................................................................................ 14 CHAPTER 4 – PROJECT PLAN............................................................................................................. 15 4.1 PROJECT PLANNING PROCESS ............................................................................................................. 15 4.2 PROGRAMMING STYLE GUIDE
View Full Document