Parsing is the process of detecting and verifying the structure of incoming data and then processing that data so as to make it available to a program in convenient ways.
This full-day tutorial will introduce beginner and intermediate programmers to the powerful and efficient parsing mechanisms built into Perl 6, and will explore specific techniques for parsing data in a variety of commonly used formats.
Topics covered in the full course include:
- simple parsing with regexes
- structured parsing with grammars
- dealing with XML and other tagged formats
- decoding heterogeneous structured formats
- extracting data structures from structured data
- coping with incomplete, malformed, and ambiguous data
- integrating parsing and object oriented programming
- data mining (parsing as a data recognition tool)
- error detection and consistency checking (parsing as a data validation tool)
- structured I/O (parsing as a data acquisition tool)
- recognition and extraction (parsing as a data search tool)
- hierarchical data processing (parsing as a data transformation tool)
1- or 2--day seminar
Perl 5 or Perl 6 programmers who are familiar with simple regular expressions. The techniques presented are not restricted to the particular applications mentioned, and will be useful to anyone who needs to process or transform structured textual data of any kind.