File: parser1.cc

package info (click to toggle)
flexc%2B%2B 2.17.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,180 kB
  • sloc: cpp: 6,467; makefile: 148; sh: 130; ansic: 18
file content (19 lines) | stat: -rw-r--r-- 579 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "parser.ih"

Parser::Parser(Rules &rules, States &states)
:
    d_options(Options::instance()),
    d_scanner(d_options.infile()),
    d_matched(d_scanner.matched()),
    d_block(0, ""),
    d_printTokens(d_options('T')),
    d_rules(rules),
    d_states(states)
{
    d_options.setParserInfo(d_matched, d_rawStringContent);
    s_ignoreToken = token_();      // set by ParserBase to _UNDETERMINED
//    setDebug(d_options.debug());    // write debug code to the generated
                                    // lex.cc file 
    setDebug(d_options.ownParserDebug());
}