File: command.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (11 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
    The tt(class Command) defines the interface to be used for scanning
commands from the standard input. Its constructor expects an array of strings,
which are the commands to be recognized, as well as the number of
commands. The command tt(\d) represents a digit, tt(*) represents any text
until end of line. Blanks may appear before or after the commands. The class
does nothing fancy: if anything more complex is required, a formal
emi(grammar) should be specified (see section(BISONFLEX)). Its member tt(int
next(std::string &text)) returns the number of the interpreted command, with
tt(text) containing the actual text that was received. Here is the class
interface:
    verbinclude(-a examples/command.h)