Abstract
Programming-by-demonstration systems often have problems with control structure inference and user-intended generalization. We propose a new solution for these weaknesses based on the concepts of the programming language AWK and present a prototype system for text processing. It utilizes 'vertical demonstration', extensive visual feedback and program visualization via spreadsheets to achieve improved usability and expressive power.