Software Practice and Experience · 1989 · 13 citations · 5 references
ComputingComputer ScienceAlgorithmsComputational LinguisticsNatural Language ProcessingFinite AutomataLexical AnalysisRegular LanguagesSyntactic AnalysisSyntax AnalysisText GenerationAutomata ConstructionCompressionDeterministic Finite AutomataLexer GeneratorsLexical SpecificationRegular ExpressionsScanner GeneratorsState Minimization
Abstract General tools for the automatic generation of lexical analysers such as LEX 1 convert a specification consisting of a set of regular expressions into a deterministic finite automaton. The main algorithms involved are subset construction, state minimization and table compression. Even if these algorithms do not show their worst‐case time behaviour they are still quite expensive. This paper shows how to solve the problem in linear time for practical cases, thus resulting in a significant speed‐up. The idea is to combine the automaton introduced by Aho and Corasick 2 with the direct computation of an efficient table representation. Besides the algorithm we present experimental results of the scanner generator Rex 3 which uses this technique.
5
Alfred V. Aho, Margaret J. Corasick · Communications of the ACM · 1975 · 2.9K citations · Full text
William M. Waite · Software Practice and Experience · 1986 · 36 citations
Alex—A Simple and Efficient Scanner Generator
Hanspeter Mössenböck · ACM SIGPLAN Notices · 1986 · 22 citations · Full text