Internals: Refactor to decouple LinkDot from ParseImp. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-06-07 08:21:22 -04:00
parent 0098e67e59
commit 01255082a6
6 changed files with 34 additions and 28 deletions
+1 -2
View File
@@ -67,7 +67,6 @@
#include "V3SymTable.h"
#include "V3Graph.h"
#include "V3Ast.h"
#include "V3ParseImp.h"
#include "V3String.h"
#include <algorithm>
@@ -719,7 +718,7 @@ class LinkDotFindVisitor : public AstNVisitor {
return new AstConst(fl, AstConst::VerilogStringLiteral(), v);
} else if (literal.find_first_of(".eEpP") != string::npos) {
// This may be a real
double v = V3ParseImp::parseDouble(literal.c_str(), literal.length(), &success);
double v = VString::parseDouble(literal, &success);
if (success) return new AstConst(fl, AstConst::RealDouble(), v);
}
if (!success) {