I started playing around with Pascal Script today and I cannot find any good documentation. I found these (one, two) articles. The are helpful but they are just examples.
edit: Separated this into two questions. New question is here.
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.
Some of us are using PascalScript here but docs are a little thin. You can take a look at the source of Innosetup (the installer) since this uses an editor and script engine from PascalScript to provide its own pascal scripting. Brian
The samples folder that comes with PascalScript is very useful, and performs reasonably well as a form of applied documentation.
I decided to add some documentation of my own. Its not very thorough but it should help out anyone who is new to Pascal Script.
Heres the link.