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 ^^')
Need help for resolving a syntax error
Moderators: MtnViewJohn, chris, mtnviewmark
- MtnViewJohn
- Site Admin
- Posts: 882
- Joined: Fri May 06, 2005 2:26 pm
- Location: Mountain View, California
- Contact:
Re: Need help for resolving a syntax error
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
Oh, ok, thanks a lot ! Indeed, now it works ! =)