Adding regular expressions to Pascal

  • Authors:
  • D. Sharpe

  • Affiliations:
  • West Georgia College, Carrollton

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 1988

Quantified Score

Hi-index 0.00

Visualization

Abstract

One generally praiseworthy characteristic of Pascal is that it allows the programmer to define new data types. However, not all operations that can be performed on indigenous types can also be performed on programmer-defined types. I/O is an example. This paper proposes an extension to Pascal that allows generalized input of enumerated types. Syntax is defined which lets the programmer use regular expressions to exercise considerable control over the translation of strings of input characters into the internal representation used for enumerated types.