I don't know if this will help but last week, I started working with FastScript. The first kinds of errors I ran into were the same as what you are seeing. After studying the slightly helpful documentation and the much more helpful code, I saw that I needed to add a constructor for a class by using an AddConstructor call and any other methods of a class with a call to AddMethod. I'm getting a better idea of just how their parsing works and it looks like I can assemble a reference to an arbitrarily complex class just by mirroring it with a series of calls to AddMethod, AddProperty, AddIndexProperty and so on. Just like in Pascal, you start first by defining the simpler class and then use that simpler class in your more complex class.
Thinking about it over the weekend, it seems like this is one very practical way to build a scripter. It could be that PascalScript has the same arrangement although undoubtedly, the names will be different.