Lexical analyzer and C++ text scanner |
This lexical analyzer use DFAs (Deterministic Finite Automata) to match tokens found on the character input stream. DFAs are defined by the set of regular expressions and are created at runtime. More than one automaton (lexical class, lexical tree) may be defined. Actions attached to regular expressions (which are executed when that expression has been matched on the input stream) may switch from one lexical class to another. The C++ text scanner is the example of using the lexical analyzer. The LEXER unit contains:
The CPLEXER unit contains:
The SCAN unit contains the MAIN function of the C++ scanner sample. Nikolay Antonov & Vyatcheslav Baranov. MBLab, 5/14/2002. |
|
You can download the source code from these link. |
|
Lexical analyzer and C++ text scanner Updated 08/24/02 |
|
| Home - Company - Sources - Products - Download - Order - Support - Forums - Contact |
| Copyright © 2001-2004 MBLabSoft. All Rights Reserved. |