mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
6881bc3814
Annotations. The branches and tags directory are empty, since I couldn't svnadmin import a repostitory dump. Many earlier versions exist, though, and if you want the full archive, just let me know and I'll send you the svnadmin dump of my full C++ Annotations archive. Frank B. Brokken <f.b.brokken@rug.nl> git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@3 f6dd340e-d3f9-0310-b409-bdd246841980
10 lines
710 B
Text
10 lines
710 B
Text
The program using our tt(Scanner) is very simple. It expects a filename
|
|
indicating where to start the scanning process. Initially the number of
|
|
arguments is checked. If at least one argument was given, then an tt(ifstream)
|
|
object is created. If this object can be created, then a tt(Scanner) object is
|
|
constructed, receiving the address of the tt(ifstream) object and the name of
|
|
the initial input file as its arguments. Then the tt(Scanner) object's
|
|
tt(yylex()) member is called. The scanner object throws tt(Scanner::Error)
|
|
exceptions if it fails to perform its tasks properly. These exceptions are
|
|
caught near tt(main())'s end. Here is the program's source:
|
|
verbinclude(concrete/lexer/lexer.cc)
|