summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-09 17:25:35 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-09 17:25:35 (GMT)
commit4eafcadda1a568192cd431f88bcb44f8a90d950f (patch)
treef22bca03f8259478b22401e0221106f341941e0a
parentdd817ad903b1c32f594482b8b2ae16ca30f86ef9 (diff)
Clifford Wolf:
Fixed operator bindings (oops) git-svn-id: http://svn.clifford.at/openscad/trunk@251 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r--examples/example017.scad6
-rw-r--r--parser.y13
2 files changed, 11 insertions, 8 deletions
diff --git a/examples/example017.scad b/examples/example017.scad
index 01cf491..1464128 100644
--- a/examples/example017.scad
+++ b/examples/example017.scad
@@ -91,7 +91,7 @@ module parts()
shape_outer_disc();
for (s = [ [1,1], [-1,1], [1,-1] ])
- render() scale(s) translate([ tripod_x_off, -tripod_y_off ]) shape_tripod();
+ scale(s) translate([ tripod_x_off, -tripod_y_off ]) shape_tripod();
}
module exploded()
@@ -139,6 +139,6 @@ module assembled()
% translate([ 0, 0, thickness*2]) bottle();
}
-// parts();
+parts();
// exploded();
-assembled();
+// assembled();
diff --git a/parser.y b/parser.y
index f1c103c..c4cd3d4 100644
--- a/parser.y
+++ b/parser.y
@@ -71,14 +71,17 @@ public:
%token LE GE EQ NE AND OR
-%left '[' ']'
+%left OR
+%left AND
+
+%left '<' LE GE '>'
+%left EQ NE
+
%left '!' '+' '-'
%left '*' '/' '%'
+%left '[' ']'
%left '.'
-%left '<' LE GE '>'
-%left EQ NE
-%left AND
-%left OR
+
%right '?' ':'
%type <expr> expr
contact: Jan Huwald // Impressum