Software visualization of LR parsing and synthesized attribute evaluation

Citation
El. White et al., Software visualization of LR parsing and synthesized attribute evaluation, SOFTW PR EX, 29(1), 1999, pp. 1-16
Citations number
20
Categorie Soggetti
Computer Science & Engineering
Journal title
SOFTWARE-PRACTICE & EXPERIENCE
ISSN journal
00380644 → ACNP
Volume
29
Issue
1
Year of publication
1999
Pages
1 - 16
Database
ISI
SICI code
0038-0644(199901)29:1<1:SVOLPA>2.0.ZU;2-2
Abstract
Visual YACC is a tool that automatically creates visualizations of the YACC LR parsing process and synthesized attribute computation. The Visual YACC tool works by instrumenting a standard YACC grammar with graphics calls tha t draw the appropriate data structures given the current actions by the par ser, The new grammar is processed by the YACC tools and the resulting parse r displays the parse stack and parse tree for every step of the parsing pro cess of a given input string. Visual YACC was initially designed to be used in compiler construction cour ses to supplement the teaching of parsing and syntax directed evaluation. W e have also found it to be useful in the difficult task of debugging YACC g rammars. In this paper, we describe this tool and how it is used in both co ntexts. We also detail two different implementations of this tool: one that produces a parser written in C with calls to Motif; and a second implement ation that generates Java source code. Copyright (C) 1999 John Wiley & Sons , Ltd.