Need help for resolving a syntax error

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
Daiki
Posts: 2
Joined: Sun Nov 09, 2014 3:05 am

Need help for resolving a syntax error

Post 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 ^^')

User avatar
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

Post 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.

Daiki
Posts: 2
Joined: Sun Nov 09, 2014 3:05 am

Re: Need help for resolving a syntax error

Post by Daiki »

Oh, ok, thanks a lot ! Indeed, now it works ! =)

Post Reply