-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoken_types.cc
More file actions
43 lines (34 loc) · 756 Bytes
/
Copy pathtoken_types.cc
File metadata and controls
43 lines (34 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifdef BITSTREAMOP_TOKEN
BITSTREAMOP_TOKEN(LParen, (
), (
))
BITSTREAMOP_TOKEN(RParen, (
), (
))
BITSTREAMOP_TOKEN(Assign, (
TOKEN_PAYLOAD_FIELD(bool, is_reassign)
), (
PRINT_FIELD("is_reassign = %d", self->is_reassign);
))
BITSTREAMOP_TOKEN(Comma, (
), (
))
BITSTREAMOP_TOKEN(Semicolon, (
), (
))
BITSTREAMOP_TOKEN(Keyword, (
TOKEN_PAYLOAD_FIELD(enum keyword_token_type, keyword_type)
), (
PRINT_FIELD("keyword_type = %s", keyword_type_names[self->keyword_type]);
))
BITSTREAMOP_TOKEN(Identifier, (
TOKEN_PAYLOAD_FIELD(CharSlice, name)
), (
PRINT_FIELD("name = %.*s", (int) self->name.length, self->name.ptr);
))
BITSTREAMOP_TOKEN(Number, (
TOKEN_PAYLOAD_FIELD(WidthInteger, value)
), (
PRINT_FIELD("value = %ld", self->value);
))
#endif