This reverts commit 5cd07648fd.
The separators construct is useful as an optimization. It turns out that
constructing a node for every chunk of whitespace in a document causes a
significant performance regression.
Conflicts:
src/compiler/build_tables/build_lex_table.cc
src/compiler/grammar.cc
src/runtime/parser.c
51 lines
624 B
Text
51 lines
624 B
Text
=============================
|
|
parses floating point numbers
|
|
=============================
|
|
3.14
|
|
---
|
|
(number)
|
|
|
|
===================
|
|
parses empty arrays
|
|
===================
|
|
[]
|
|
---
|
|
(array)
|
|
|
|
===================
|
|
parses arrays
|
|
===================
|
|
[
|
|
333,
|
|
null,
|
|
true,
|
|
false,
|
|
{ "stuff": "good" }
|
|
]
|
|
---
|
|
(array
|
|
(number)
|
|
(null)
|
|
(true)
|
|
(false)
|
|
(object (string) (string)))
|
|
|
|
====================
|
|
parses empty objects
|
|
====================
|
|
{}
|
|
---
|
|
(object)
|
|
|
|
===================
|
|
parses long objects
|
|
===================
|
|
{
|
|
"key1": "value1",
|
|
"key2": 1
|
|
}
|
|
---
|
|
(object
|
|
(string) (string)
|
|
(string) (number))
|
|
|