Download A System to Generate A Simple and Reusable Web

Transcript
<2.2> System implementation from the programmer’s view
Our overall system is like a compiler. Reading the text file is similar to the scanning and
parsing phases in the compilation process. Then the generating system generates the target
CGI program to implement the functions defined in the text file. The target CGI program is
equivalent to the target code in the compiler. The processing of our overall system includes
three main phases: read the text file, save the information to an organized data structure, and
output the web-based target CGI program. Therefore, a language that is able to implement
these phases efficiently is very important for our implementation. After careful comparison
and consideration, we finally chose Perl [Sher96] as our programming language because it
provides all of the powerful functions our implementation needs. Its key features [Cher98]
include:
n Powerful text manipulation
- regular expressions
- formatted output
n Powerful file management
n Convenient data type management
- list and hash sorting/searching
- not strongly typed
- optional function prototypes
n Rapid development and prototyping
n Compact code for complex operations
n Easy CGI scripting
18