Objects for lexical analysis

Autor(en): Kuhl, B
Schreiner, AT
Stichwörter: Computer Science; Computer Science, Software Engineering
Erscheinungsdatum: 2002
Herausgeber: ASSOC COMPUTING MACHINERY
Journal: ACM SIGPLAN NOTICES
Volumen: 37
Ausgabe: 2
Startseite: 45
Seitenende: 52
Zusammenfassung: 
This paper presents a new idea for lexical analysis: lolo (language-oriented lexer objects) is strictly based on the object orientation paradigm. We introduce the idea behind the system, describe the implementation, and compare it to the conventional approach using lex[l] or flex[2]. lolo[3] extracts symbols from a sequence of input characters belonging to the ASCII or Unicode sets. lolo scanners can be extended without access to the source code: symbol recognizers can be derived by inheritance and an executing scanner can be reconfigured for different contexts. Recognizer actions are represented by objects which may be replaced at any time. Recognizers need not be based on finite state automata; therefore, lolo can recognize symbols that systems like lex cannot recognize directly.
ISSN: 03621340
DOI: 10.1145/568600.568610

Show full item record

Google ScholarTM

Check

Altmetric