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

Method parse

file_plugins/gerber/mathparser.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

parseAttributesMethod · 0.45
drawMethod · 0.45

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected