Page 1 of 1

Need help for resolving a syntax error

Posted: Sun Nov 09, 2014 1:24 pm
by Daiki
Hi !

In second year in an architecture school in France, I found this http://www.contextfreeart.org/gallery/view.php?id=947 which insterest me a lot for my project. I didn't know this software and this code at all before founding this, and unfurtunatly it doesn't work...

It says that there is an error at this lane :

startshape start

rule start {
element{sat 0 h 15 b .14}
element{sat 0 h 15 b .14 r 180}
}

rule element{
SQUARE{}
element{s 0.99 x 0.9}
}

rule element 0.026{
SQUARE{}
element{s 0.99 x 0.9 r = 90}
element{s 0.99 x 0.9 r = -90}
}

rule element 0.01{
SQUARE{}
element{s 0.99 r 30 x 0.6 y 0.15}
}

rule element 0.01{
SQUARE{}
element{s 0.99 r -30 x 0.6 y -0.15}
}

rule element 0.001{
SQUARE{s 10 z 1 b -1}
}


The "=" seems to be the issue, but I don't really know why.
Can someone help me ?

(Sorry if it's not the good topic ^^')

Re: Need help for resolving a syntax error

Posted: Tue Nov 11, 2014 8:37 am
by MtnViewJohn
Just delete the two '=' signs. Context Free used to ignore characters that were not part of the syntax and in 2007 '=' was not used in cfdg files. In 2012 '=' was added to the syntax and the cfdg file parser was made more strict. So, the Cities design used to work despite its syntax error but now it does not.

Re: Need help for resolving a syntax error

Posted: Sat Nov 15, 2014 2:56 am
by Daiki
Oh, ok, thanks a lot ! Indeed, now it works ! =)