A Portable Lexical Analyzer Writing System.

Robert C. Gammill

Expert InsightsPublished 1973

LAWS, a lexical analyzer writing system implemented in FORTRAN, attempts to achieve a compromise between the contradictory demands of efficiency and portability. Simplicity is emphasized to make extension and modification easy. LAWS is a compiler for generating state transition tables and a finite state machine (FSM) directed by those tables. The language (STATE-DEF) used to program the FSM resembles Floyd-Evans Production Language. A program written in STATE-DEF, the resulting state transition table, and a flow chart of the FSM are given. Of special interest are the methods for keeping tables small and automatically translating character codes. 18 pp. Ref.

Document Details

  • Availability: Web Only
  • Year: 1973
  • Pages: 18
  • Document Number: P-5117

Citation

Chicago Manual of Style

Gammill, Robert C., A Portable Lexical Analyzer Writing System. Santa Monica, CA: RAND Corporation, 1973. https://www.rand.org/pubs/papers/P5117.html.
BibTeX RIS

This publication is part of the RAND paper series. The paper series was a product of RAND from 1948 to 2003 that captured speeches, memorials, and derivative research, usually prepared on authors' own time and meant to be the scholarly or scientific contribution of individual authors to their professional fields. Papers were less formal than reports and did not require rigorous peer review.

This document and trademark(s) contained herein are protected by law. This representation of RAND intellectual property is provided for noncommercial use only. Unauthorized posting of this publication online is prohibited; linking directly to this product page is encouraged. Permission is required from RAND to reproduce, or reuse in another form, any of its research documents for commercial purposes. For information on reprint and reuse permissions, please visit www.rand.org/pubs/permissions.

RAND is a nonprofit institution that helps improve policy and decisionmaking through research and analysis. RAND's publications do not necessarily reflect the opinions of its research clients and sponsors.