A method for designing a lexical analyzer

dc.contributor.authorGujar, Uday, G.
dc.contributor.authorDedurek, John, M.
dc.contributor.authorMcIntyre, Marion, E.
dc.date.accessioned2023-03-01T18:27:52Z
dc.date.available2023-03-01T18:27:52Z
dc.date.issued1979
dc.description.abstractThe scanner is a subroutine which is frequently called by an application program like a compiler. The primary function of a scanner is to combine characters from the input stream into recognizable units called tokens. A method has been presented in this paper for designing such a scanner, also frequently referred to as a lexical analyzer in the current literature. The major steps involved in this design process are: identification of tokens, construction of a state diagram, building driver tables and finally writing a scanning routine. The rules for generating the driver tables are described and an algorithm for the scanner, utilizing these driver tables, is included. The method has been successfully used to build the system scanner for a user oriented plotting language. It is concluded that the method is well defined, gives rise to a modular design and as such easily lends itself to language extensions.
dc.description.copyrightCopyright @ Uday G. Gujar, John M. Dedurek, and Marion E. McIntyre, 1979.
dc.identifier.urihttps://unbscholar.lib.unb.ca/handle/1882/14792
dc.rightshttp://purl.org/coar/access_right/c_abf2
dc.subject.disciplineComputer Science
dc.titleA method for designing a lexical analyzer
dc.typetechnical report

Files

Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
item.pdf
Size:
250.88 KB
Format:
Adobe Portable Document Format

Collections