Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
4cadecd3
Commit
4cadecd3
authored
Jul 06, 2014
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrote DOM
But some examples are to be filled in.
parent
c12286a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
123 additions
and
0 deletions
+123
-0
insituparsing.dot
doc/diagram/insituparsing.dot
+66
-0
insituparsing.png
doc/diagram/insituparsing.png
+0
-0
normalparsing.dot
doc/diagram/normalparsing.dot
+57
-0
normalparsing.png
doc/diagram/normalparsing.png
+0
-0
dom.md
doc/dom.md
+0
-0
No files found.
doc/diagram/insituparsing.dot
0 → 100644
View file @
4cadecd3
digraph
{
compound
=
true
fontname
=
"Inconsolata, Consolas"
fontsize
=
10
margin
=
"0,0"
ranksep
=
0.2
penwidth
=
0.5
node
[
fontname
=
"Inconsolata, Consolas"
,
fontsize
=
10
,
penwidth
=
0.5
]
edge
[
fontname
=
"Inconsolata, Consolas"
,
fontsize
=
10
,
arrowhead
=
normal
]
{
node
[
shape
=
record
,
fontsize
=
"8"
,
margin
=
"0.04"
,
height
=
0.2
,
color
=
gray
]
oldjson
[
label
=
"\{|\"|m|s|g|\"|:|\"|H|e|l|l|o|\\|n|W|o|r|l|d|!|\"|,|\"|\\|u|0|0|7|3|t|a|r|s|\"|:|1|0|\}"
,
xlabel
=
"Before Parsing"
]
//newjson [label="\{|\"|<a>m|s|g|\\0|:|\"|<b>H|e|l|l|o|\\n|W|o|r|l|d|!|\\0|\"|,|\"|<c>s|t|a|r|s|\\0|t|a|r|s|:|1|0|\}", xlabel="After Parsing"]
newjson
[
shape
=
plaintext
,
label
=<
<table
BORDER=
"0"
CELLBORDER=
"1"
CELLSPACING=
"0"
CELLPADDING=
"2"
><tr>
<td>
{
</td>
<td>
"
</td><td
port=
"a"
>
m
</td><td>
s
</td><td>
g
</td><td
bgcolor=
"yellow"
>
\\0
</td>
<td>
:
</td>
<td>
"
</td><td
port=
"b"
>
H
</td><td>
e
</td><td>
l
</td><td>
l
</td><td>
o
</td><td
bgcolor=
"yellow"
>
\\n
</td><td
bgcolor=
"yellow"
>
W
</td><td
bgcolor=
"yellow"
>
o
</td><td
bgcolor=
"yellow"
>
r
</td><td
bgcolor=
"yellow"
>
l
</td><td
bgcolor=
"yellow"
>
d
</td><td
bgcolor=
"yellow"
>
!
</td><td
bgcolor=
"yellow"
>
\\0
</td><td>
"
</td>
<td>
,
</td>
<td>
"
</td><td
port=
"c"
bgcolor=
"yellow"
>
s
</td><td
bgcolor=
"yellow"
>
t
</td><td
bgcolor=
"yellow"
>
a
</td><td
bgcolor=
"yellow"
>
r
</td><td
bgcolor=
"yellow"
>
s
</td><td
bgcolor=
"yellow"
>
\\0
</td><td>
t
</td><td>
a
</td><td>
r
</td><td>
s
</td>
<td>
:
</td>
<td>
1
</td><td>
0
</td>
<td>
}
</td>
</tr></table>
>,
xlabel
=
"After Parsing"
]
}
subgraph
cluster1
{
margin
=
"10,10"
labeljust
=
"left"
label
=
"Document by In situ Parsing"
style
=
filled
fillcolor
=
gray95
node
[
shape
=
Mrecord
,
style
=
filled
,
colorscheme
=
spectral7
]
root
[
label
=
"{object|}"
,
fillcolor
=
3
]
{
msg
[
label
=
"{string|<a>}"
,
fillcolor
=
5
]
helloworld
[
label
=
"{string|<a>}"
,
fillcolor
=
5
]
stars
[
label
=
"{string|<a>}"
,
fillcolor
=
5
]
ten
[
label
=
"{number|10}"
,
fillcolor
=
6
]
}
}
oldjson
->
root
[
label
=
" ParseInsitu()"
lhead
=
"cluster1"
]
edge
[
arrowhead
=
vee
]
root
->
{
msg
;
stars
}
edge
[
arrowhead
=
"none"
]
msg
->
helloworld
stars
->
ten
{
edge
[
arrowhead
=
vee
,
arrowtail
=
dot
,
arrowsize
=
0.5
,
dir
=
both
,
tailclip
=
false
]
msg
:
a
:
c
->
newjson
:
a
helloworld
:
a
:
c
->
newjson
:
b
stars
:
a
:
c
->
newjson
:
c
}
//oldjson -> newjson [style=invis]
}
\ No newline at end of file
doc/diagram/insituparsing.png
0 → 100644
View file @
4cadecd3
23.5 KB
doc/diagram/normalparsing.dot
0 → 100644
View file @
4cadecd3
digraph
{
compound
=
true
fontname
=
"Inconsolata, Consolas"
fontsize
=
10
margin
=
"0,0"
ranksep
=
0.2
penwidth
=
0.5
node
[
fontname
=
"Inconsolata, Consolas"
,
fontsize
=
10
,
penwidth
=
0.5
]
edge
[
fontname
=
"Inconsolata, Consolas"
,
fontsize
=
10
,
arrowhead
=
normal
]
{
node
[
shape
=
record
,
fontsize
=
"8"
,
margin
=
"0.04"
,
height
=
0.2
,
color
=
gray
]
normaljson
[
label
=
"\{|\"|m|s|g|\"|:|\"|H|e|l|l|o|\\|n|W|o|r|l|d|!|\"|,|\"|\\|u|0|0|7|3|t|a|r|s\"|:|1|0|\}"
]
{
rank
=
same
msgstring
[
label
=
"m|s|g|\\0"
]
helloworldstring
[
label
=
"H|e|l|l|o|\\n|W|o|r|l|d|!|\\0"
]
starsstring
[
label
=
"s|t|a|r|s\\0"
]
}
}
subgraph
cluster1
{
margin
=
"10,10"
labeljust
=
"left"
label
=
"Document by Normal Parsing"
style
=
filled
fillcolor
=
gray95
node
[
shape
=
Mrecord
,
style
=
filled
,
colorscheme
=
spectral7
]
root
[
label
=
"{object|}"
,
fillcolor
=
3
]
{
msg
[
label
=
"{string|<a>}"
,
fillcolor
=
5
]
helloworld
[
label
=
"{string|<a>}"
,
fillcolor
=
5
]
stars
[
label
=
"{string|<a>}"
,
fillcolor
=
5
]
ten
[
label
=
"{number|10}"
,
fillcolor
=
6
]
}
}
normaljson
->
root
[
label
=
" Parse()"
lhead
=
"cluster1"
]
edge
[
arrowhead
=
vee
]
root
->
{
msg
;
stars
}
edge
[
arrowhead
=
"none"
]
msg
->
helloworld
stars
->
ten
edge
[
arrowhead
=
vee
,
arrowtail
=
dot
,
arrowsize
=
0.5
,
dir
=
both
,
tailclip
=
false
]
msg
:
a
:
c
->
msgstring
:
w
helloworld
:
a
:
c
->
helloworldstring
:
w
stars
:
a
:
c
->
starsstring
:
w
msgstring
->
helloworldstring
->
starsstring
[
style
=
invis
]
}
\ No newline at end of file
doc/diagram/normalparsing.png
0 → 100644
View file @
4cadecd3
22.1 KB
doc/dom.md
View file @
4cadecd3
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment