-
Notifications
You must be signed in to change notification settings - Fork 2
/
debug.natvis
142 lines (140 loc) · 6.64 KB
/
debug.natvis
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="nlohmann::basic_json<*>">
<DisplayString Condition="m_type == nlohmann::detail::value_t::null">null</DisplayString>
<DisplayString Condition="m_type == nlohmann::detail::value_t::object">{*(m_value.object)}</DisplayString>
<DisplayString Condition="m_type == nlohmann::detail::value_t::array">{*(m_value.array)}</DisplayString>
<DisplayString Condition="m_type == nlohmann::detail::value_t::string">{*(m_value.string)}</DisplayString>
<DisplayString Condition="m_type == nlohmann::detail::value_t::boolean">{m_value.boolean}</DisplayString>
<DisplayString Condition="m_type == nlohmann::detail::value_t::number_integer">{m_value.number_integer}</DisplayString>
<DisplayString Condition="m_type == nlohmann::detail::value_t::number_unsigned">{m_value.number_unsigned}</DisplayString>
<DisplayString Condition="m_type == nlohmann::detail::value_t::number_float">{m_value.number_float}</DisplayString>
<DisplayString Condition="m_type == nlohmann::detail::value_t::discarded">discarded</DisplayString>
<Expand>
<ExpandedItem Condition="m_type == nlohmann::detail::value_t::object">
*(m_value.object),view(simple)
</ExpandedItem>
<ExpandedItem Condition="m_type == nlohmann::detail::value_t::array">
*(m_value.array),view(simple)
</ExpandedItem>
</Expand>
</Type>
<Type Name="std::pair<*, nlohmann::basic_json<*>>" IncludeView="MapHelper">
<DisplayString>{second}</DisplayString>
<Expand>
<ExpandedItem>second</ExpandedItem>
</Expand>
</Type>
<Type Name="ParserState">
<DisplayString Condition="conflict == 0">{{ Index = {index}, Size = {transition_count} }}</DisplayString>
<DisplayString Condition="conflict == 1">{{ Index = {index}, Size = {transition_count}, ShiftReduce }}</DisplayString>
<DisplayString Condition="conflict == 2">{{ Index = {index}, Size = {transition_count}, ReduceReduce }}</DisplayString>
<!-- <DisplayString>{{ Size = {transition_count} }}</DisplayString>-->
<Expand>
<ArrayItems>
<Size>transition_count</Size>
<ValuePointer>transitions</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="ParserTransition">
<DisplayString Condition="type == 0">{{ None }}</DisplayString>
<DisplayString Condition="type == 1">{{ {ParserSymbols[symbol].text} ({symbol}) | Shift -> {state} }}</DisplayString>
<DisplayString Condition="type == 2">{{ {ParserSymbols[symbol].text} ({symbol}) | Reduce {reduce_length} -> {ParserSymbols[reduce_symbol].text} }}</DisplayString>
<Expand>
<Item Name="[State]">state</Item>
<Item Name="[Symbol]">ParserSymbols[symbol].text</Item>
<Item Name="[Precedence]">precedence</Item>
<ArrayItems>
<Size>action_count</Size>
<ValuePointer>actions</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="LexerState">
<DisplayString Condition="symbol != 0">{{ Symbol = {ParserSymbols[symbol].text} }}</DisplayString>
<DisplayString Condition="symbol == 0">{{ Null }}</DisplayString>
<Expand>
<ArrayItems>
<Size>transition_count</Size>
<ValuePointer>transitions</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="LexerTransition">
<!-- <DisplayString>{{ Begin={(char)begin} }}</DisplayString>-->
<Expand>
<Item Name="[Begin]">(char) begin</Item>
<Item Name="[End]">(char) end</Item>
<Item Name="[State]">state</Item>
</Expand>
</Type>
<Type Name="std::shared_ptr<*>">
<DisplayString Condition="_Ptr == 0">empty</DisplayString>
<DisplayString Condition="_Ptr != 0">{*_Ptr}</DisplayString>
<Expand>
<ExpandedItem>_Ptr</ExpandedItem>
</Expand>
</Type>
<Type Name="ParserGraphNode<*>">
<DisplayString>{{ Symbol = {ParserSymbols[symbol].text}, Lexeme = {lexeme}, State = {state} }}</DisplayString>
<Expand>
<Item Name="[Prevs]">prevs</Item>
<Item Name="[State]">state</Item>
<Item Name="[Symbol]">ParserSymbols[symbol].text</Item>
<Item Name="[Lexeme]">lexeme</Item>
<Item Name="[Value]">value</Item>
<Item Name="[Depth]">depth</Item>
<Item Name="[Merge]">merge</Item>
<Item Name="[Location]">location</Item>
</Expand>
</Type>
<Type Name="std::pair<*>">
<DisplayString IncludeView="noparens">{first}, {second}</DisplayString>
<DisplayString ExcludeView="noparens">({first}, {second})</DisplayString>
<Expand>
<ExpandedItem>second</ExpandedItem>
</Expand>
</Type>
<Type Name="alex::RegexTransition">
<!-- <DisplayString>{{ [{char(begin)}({begin}), {char(end)}({begin})] }}</DisplayString>-->
<Expand>
<Item Name="[Begin]">((char) begin)</Item>
<Item Name="[End]">((char) (end - 1))</Item>
<Item Name="[State]">state</Item>
</Expand>
</Type>
<Type Name="alex::RegexRange">
<Expand>
<Item Name="[begin]">((char) begin)</Item>
<Item Name="[end]">((char) (end - 1))</Item>
<Item Name="[firstpos]">firstpos</Item>
<Item Name="[lastpos]">lastpos</Item>
<Item Name="[followpos]">followpos</Item>
</Expand>
</Type>
<Type Name="alex::RegexGenerator<*>::Transition">
<!-- <DisplayString>{{ [{char(begin)}({begin}), {char(end)}({begin})] }}</DisplayString>-->
<Expand>
<Item Name="[Begin]">((char) begin)</Item>
<Item Name="[End]">((char) (end - 1))</Item>
<Item Name="[State]">state</Item>
</Expand>
</Type>
<Type Name="alex::RegexRange">
<Expand>
<Item Name="[begin]">((char) begin)</Item>
<Item Name="[end]">((char) (end - 1))</Item>
<Item Name="[firstpos]">firstpos</Item>
<Item Name="[lastpos]">lastpos</Item>
<Item Name="[followpos]">followpos</Item>
</Expand>
</Type>
<Type Name="ReduceAction">
<Expand>
<Item Name="[Opcode]">((ActionOpcode) opcode)</Item>
<Item Name="[Int]">index</Item>
<Item Name="[Str]">value</Item>
</Expand>
</Type>
</AutoVisualizer>