MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / parse

Method parse

GTE_Win/gerber/mathparser.cpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31double MathParser::parse(const QString& s)
32{
33 Result result;
34 try {
35 result = plusMinus(s);
36 if (!result.rest.isEmpty()) {
37 qWarning() << "Error: can't full parse"
38 << "\"" << s << "\"";
39 qWarning() << "rest: " + result.rest;
40 }
41 } catch (const QString& str) {
42 qWarning() << str;
43 }
44 return result.acc;
45}
46
47Result MathParser::plusMinus(QString s) //throws Exception
48{

Callers 1

drawMethod · 0.45

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected