40 likes | 73 Views
This course covers the fundamentals of scripting languages, their characteristics, and typical examples like sh, bash, sed, awk, Perl, Tcl, and Python. Scripting languages are loosely typed, procedural with object-oriented extensions, and enable mixed-language programming. They are often used for text processing, dynamic memory allocation, and rapid development without a compile-link-run cycle.
E N D
Scripting Languages Henning Schulzrinne Advanced Programming Advanced Programming Spring 2002
Scripting languages • Not a well-defined term • Derived from shell (command line) scripts • Often typed directly by user • Usually no compile-link-run cycle, but interpreted or compiled “just in time” (JIT) Advanced Programming Spring 2002
Scripting languages • Often loosely typed • no explicit variable and type declaration • variables treated as strings or numbers according to context • Dynamic memory allocation with automatic garbage collection • Text processing: regular expressions, sorting, ... • Procedural, but often with OO or namespace extensions • Some (Tcl, sh) derived from substitution instead of evaluation • Some (Tcl, Perl, Python) allow mixed-language programming Advanced Programming Spring 2002
Scripting languages • We’ll look at typical examples: • sh, bash – the first one • sed – pattern editing • awk – pattern language • Perl – a real language for string processing • Tcl – shell-like, easy extensible, graphical GUI • Python – modern OO-oriented Advanced Programming Spring 2002