Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
b784433f
Unverified
Commit
b784433f
authored
Nov 07, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
less verbose parser
parent
8c064e7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/cif++/parser.hpp
+1
-1
src/parser.cpp
+3
-3
No files found.
include/cif++/parser.hpp
View file @
b784433f
...
...
@@ -221,7 +221,7 @@ class sac_parser
void
warning
(
const
std
::
string
&
msg
)
{
if
(
cif
::
VERBOSE
>
0
)
std
::
cerr
<<
"parser warning at line"
<<
m_line_nr
<<
": "
<<
msg
<<
std
::
endl
;
std
::
cerr
<<
"parser warning at line
"
<<
m_line_nr
<<
": "
<<
msg
<<
std
::
endl
;
}
// production methods, these are pure virtual here
...
...
src/parser.cpp
View file @
b784433f
...
...
@@ -222,7 +222,7 @@ sac_parser::CIFToken sac_parser::get_next_token()
error
(
"unterminated textfield"
);
// else if (ch == '\\')
// state = State::Esc;
else
if
(
not
is_any_print
(
ch
))
else
if
(
not
is_any_print
(
ch
)
and
cif
::
VERBOSE
>
2
)
warning
(
"invalid character in text field '"
+
std
::
string
({
static_cast
<
char
>
(
ch
)})
+
"' ("
+
std
::
to_string
((
int
)
ch
)
+
")"
);
break
;
...
...
@@ -252,8 +252,8 @@ sac_parser::CIFToken sac_parser::get_next_token()
error
(
"unterminated quoted string"
);
else
if
(
ch
==
quoteChar
)
state
=
State
::
QuotedStringQuote
;
else
if
(
not
is_any_print
(
ch
))
warning
(
"invalid character in quoted string: '"
+
std
::
string
({
static_cast
<
char
>
(
ch
)})
+
'\''
);
else
if
(
not
is_any_print
(
ch
)
and
cif
::
VERBOSE
>
2
)
warning
(
"invalid character in quoted string: '"
+
std
::
string
({
static_cast
<
char
>
(
ch
)})
+
"' ("
+
std
::
to_string
((
int
)
ch
)
+
")"
);
break
;
case
State
:
:
QuotedStringQuote
:
...
...
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