nature-of-code / noc-examples-processing

Repository for example code from The Nature of Code book
MIT License
2.56k stars 952 forks source link

expecting EOF, found 'import' #8

Closed macklinu closed 11 years ago

macklinu commented 11 years ago

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.