cppannotations/annotations/yo/concrete/bisonflexspec.yo

10 lines
443 B
Text
Raw Normal View History

The flex-specification file used by the calculator is simple: blanks are
2012-02-24 16:21:11 +01:00
ignored, single characters are returned, and numeric values are returned as
2012-02-26 17:19:16 +01:00
either tt(Parser::INT) or tt(Parser::DOUBLE) tokens.
2012-02-24 16:21:11 +01:00
The tt(flexc++) directive tt(%interactive) is provided since the
calculator is a program actively interacting with its human user.
Here is the complete tt(flexc++) specification file:
verbinclude(-a bisonc++/scanner/lexer)