mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-18 20:31:35 +02:00
Turned of tokenizer debugging messages
This commit is contained in:
@@ -110,12 +110,11 @@ namespace Configuration {
|
|||||||
token_.indent_ = indent;
|
token_.indent_ = indent;
|
||||||
if (IsEndLine()) {
|
if (IsEndLine()) {
|
||||||
token_.kind_ = TokenKind::Section;
|
token_.kind_ = TokenKind::Section;
|
||||||
|
#ifdef VERBOSE_TOKENIZER
|
||||||
log_debug("Section " << StringRange(token_.keyStart_, token_.keyEnd_).str());
|
log_debug("Section " << StringRange(token_.keyStart_, token_.keyEnd_).str());
|
||||||
|
#endif
|
||||||
|
|
||||||
Inc();
|
Inc();
|
||||||
// if (!Eof() && Current() == '\n') {
|
|
||||||
// Inc();
|
|
||||||
// } // \r\n
|
|
||||||
} else {
|
} else {
|
||||||
if (Current() == '"' || Current() == '\'') {
|
if (Current() == '"' || Current() == '\'') {
|
||||||
auto delimiter = Current();
|
auto delimiter = Current();
|
||||||
@@ -131,8 +130,10 @@ namespace Configuration {
|
|||||||
ParseError("Could not find matching delimiter in string value.");
|
ParseError("Could not find matching delimiter in string value.");
|
||||||
}
|
}
|
||||||
Inc();
|
Inc();
|
||||||
|
#ifdef VERBOSE_TOKENIZER
|
||||||
log_debug("StringQ " << StringRange(token_.keyStart_, token_.keyEnd_).str() << " "
|
log_debug("StringQ " << StringRange(token_.keyStart_, token_.keyEnd_).str() << " "
|
||||||
<< StringRange(token_.sValueStart_, token_.sValueEnd_).str());
|
<< StringRange(token_.sValueStart_, token_.sValueEnd_).str());
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
token_.kind_ = TokenKind::String;
|
token_.kind_ = TokenKind::String;
|
||||||
token_.sValueStart_ = current_;
|
token_.sValueStart_ = current_;
|
||||||
@@ -140,8 +141,10 @@ namespace Configuration {
|
|||||||
Inc();
|
Inc();
|
||||||
}
|
}
|
||||||
token_.sValueEnd_ = current_;
|
token_.sValueEnd_ = current_;
|
||||||
|
#ifdef VERBOSE_TOKENIZER
|
||||||
log_debug("String " << StringRange(token_.keyStart_, token_.keyEnd_).str() << " "
|
log_debug("String " << StringRange(token_.keyStart_, token_.keyEnd_).str() << " "
|
||||||
<< StringRange(token_.sValueStart_, token_.sValueEnd_).str());
|
<< StringRange(token_.sValueStart_, token_.sValueEnd_).str());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
// Skip more whitespaces
|
// Skip more whitespaces
|
||||||
while (!Eof() && IsWhiteSpace()) {
|
while (!Eof() && IsWhiteSpace()) {
|
||||||
|
Reference in New Issue
Block a user