Debian Codegraph @

documentation/manual/class/privenum.yo

raw
1 The following enumerations and types can be used by members of parser
2 classes generated by bic(). They are actually protected members inherited from
3 the parser's base class.
4 itemization(
5 it() bf(Base::ErrorRecovery_):nl()
6 This enumeration defines one values:
7 verb(
8 UNEXPECTED_TOKEN_
9 )
10 When the parsing process throws tt(UNEXPECTED_TOKEN_) the recovery
11 procedure is started (i.e., it is started whenever a syntactic error
12 is encountered or tt(ERROR)tt(()) is called).
13
14 The recovery procedure consists of (1) looking for the first state on
15 the state-stack having an error-production, followed by (2) handling
16 all state transitions that are possible without retrieving a terminal
17 token. Then, in the state requiring a terminal token and starting with
18 the initial unexpected token (3) all subsequent terminal tokens are
19 ignored until a token is retrieved which is a continuation token in
20 that state.
21
22 If the error recovery procedure fails (i.e., if no acceptable token is
23 ever encountered) error recovery falls back to the default recovery
24 mode: the parsing process terminates.
25
26 it() bf(Base::Return_):nl()
27 This enumeration defines two values:
28 verb(
29 PARSE_ACCEPT = 0,
30 PARSE_ABORT = 1
31 )
32 (which are also used as the tt(parse) function's return values).
33 )
34
35 When the tt(%polymorphic) directive is used:
36 itemization(
37 it() bf(Meta_::sizeofTag_):nl()
38 tt(sizeofTag_) defines the number of tags that were defined for
39 polymorphic semantic values.
40 )
41
42