nature-of-code / noc-examples-processing

Repository for example code from The Nature of Code book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

expecting EOF, found 'import'

macklinu opened this issue · comments

In Processing example ch_9ga/EvolveFlowField/EvolveFlowField.pde using Processing 2.0b6, I get the following error when trying to run the sketch.

Expecting EOF, found 'import'

This occurred in line 9 of Obstacle.pde, the line that reads import java.awt.Rectangle;

I was able to remedy this by moving this library import line to the main file (EvolveFlowField.pde) at the top of the file, in which I could then run the sketch. Thanks.