Debian Codegraph @

documentation/manual/directives/ltype.yo

raw
1 bf(%ltype typename)
2
3 Specifies a user-defined token location type. If bf(%ltype) is used,
4 tt(typename) should be the name of an alternate default-constructible type
5 (e.g., bf(size_t)). It should not be used together with a
6 link(%locationstruct)(LOCSTRUCT) specification. From inside the parser class,
7 this type may be referred to as bf(LTYPE_).
8
9 Any text following tt(%ltype) up to the end of the line, up to the first
10 of a series of trailing blanks or tabs or up to a comment-token (tt(//) or
11 tt(/*)) becomes part of the type definition. Be sure em(not) to end an
12 tt(%ltype) definition in a semicolon.