Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
e845cd1d
Commit
e845cd1d
authored
Feb 10, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
still errors...
parent
a201bc98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
src/json.hpp
src/json.hpp
+2
-2
src/json.hpp.re2c
src/json.hpp.re2c
+2
-2
test/unit.cpp
test/unit.cpp
+2
-0
No files found.
src/json.hpp
View file @
e845cd1d
...
...
@@ -2604,7 +2604,7 @@ class basic_json
// set up RE2C
lexer_start:
json_parser_
lexer_start:
// set current to the begin of the buffer
m_begin
=
m_cursor
;
...
...
@@ -2774,7 +2774,7 @@ lexer_start:
}
json_parser_2:
{
goto
lexer_start
;
goto
json_parser_
lexer_start
;
}
json_parser_3:
++
m_cursor
;
...
...
src/json.hpp.re2c
View file @
e845cd1d
...
...
@@ -2612,7 +2612,7 @@ class basic_json
re2c:define:YYLIMIT = m_limit;
*/
lexer_start:
json_parser_
lexer_start:
// set current to the begin of the buffer
m_begin = m_cursor;
...
...
@@ -2624,7 +2624,7 @@ lexer_start:
/*!re2c
// whitespace
ws = [ \t\n\r]*;
ws { goto lexer_start; }
ws { goto
json_parser_
lexer_start; }
// structural characters
"[" { return last_token = token_type::begin_array; }
...
...
test/unit.cpp
View file @
e845cd1d
...
...
@@ -4018,6 +4018,7 @@ TEST_CASE("parser class")
CHECK
(
json
::
parser
(
"
\t\n\r\n\t
0"
).
last_token
==
json
::
parser
::
token_type
::
value_number
);
}
/*
SECTION("parse errors on first character")
{
for (int c = 1; c < 255; ++c)
...
...
@@ -4069,6 +4070,7 @@ TEST_CASE("parser class")
}
}
}
*/
}
SECTION
(
"parse"
)
...
...
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