Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 705bfd72 authored by kraus's avatar kraus
Browse files

mslang: fix parser for rotation

parent b4da95d4
No related branches found
No related tags found
No related merge requests found
......@@ -304,8 +304,8 @@ struct rotate: public function {
bool parse_detail(iterator &it, const iterator &end, function* &fun) {
rotate *rot = static_cast<rotate*>(fun);
if (!parse(it, end, rot->func)) return false;
boost::regex argumentList("," + Double + "," + Double + "\\)(.*)");
std::cout << std::string(it, end) << std::endl;
boost::regex argumentList("," + Double + "\\)(.*)");
boost::smatch what;
std::string str(it, end);
......@@ -436,10 +436,11 @@ bool parse(iterator &it, const iterator &end, function* &fun) {
return true;
} else if (identifier == "rotate") {
fun = new rotate;
iterator it2 = it + shift;
if (!rotate::parse_detail(it2, end, fun)) return false;
// iterator it2 =
it += shift;
if (!rotate::parse_detail(it, end, fun)) return false;
it = it2;
// it = it2;
return true;
} else if (identifier == "translate") {
......
repeat(
union(
translate(
rectangle(0.1, 0.1),
-0.01,
-0.02
),
ellipse(0.1, 0.1)
),
2,
0.1,
0.2
)
\ No newline at end of file
union(
ellipse(
0.1,
0.1
),
translate(
rotate(
rectangle(
0.1,
0.1
),
0.52359877
),
-0.01,
-0.02
)
),
2,
0.1,
0.2
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment