Experimenting with formal languages using forlan

  • Authors:
  • Alley Stoughton

  • Affiliations:
  • Kansas State University, Manhattan, KS, USA

  • Venue:
  • Proceedings of the 2008 international workshop on Functional and declarative programming in education
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

We give an introduction to the Forlan formal language theory toolset, which was designed to facilitate sophisticated experimentation with formal languages. Forlan is embedded in the functional programming language Standard ML, a language whose notation and concepts are similar to those of mathematics. It is strongly typed and interactive, properties that help make experimentation robust, simple and enjoyable. We give an extended example of the kind of experimentation that Forlan makes possible. It involves the use of closure properties/algorithms for regular languages/finite automata and a "difference" function on strings of zeros and ones.