Language Analysis and Tools for Ambiguous Input Streams

  • Authors:
  • Andrew Begel;Susan L. Graham

  • Affiliations:
  • Computer Science Division -- EECS, University of California, Berkeley, Berkeley, CA, 94720-1776 USA;Computer Science Division -- EECS, University of California, Berkeley, Berkeley, CA, 94720-1776 USA

  • Venue:
  • Electronic Notes in Theoretical Computer Science (ENTCS)
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

Automatically generated lexers and parsers for programming languages have a long history. Although they are well-suited for many languages, many widely-used generators, among them Flex and Bison, fail to handle input stream ambiguities that arise in embedded languages, in legacy languages, and in programming by voice. We have developed Blender, a combined lexer and parser generator that enables designers to describe many classes of embedded languages and to handle ambiguities in spoken input and in legacy languages. We have enhanced the incremental lexing and parsing algorithms in our Harmonia framework to analyze lexical, syntactic and semantic ambiguities. The combination of better language description and enhanced analysis provides a powerful platform on which to build the next generation of language analysis tools.