pascalscript

Is there a safe way to clean up stack-based code when jumping out of a block?

I've been working on Issue 14 on the PascalScript scripting engine, in which using a Goto command to jump out of a Case block produces a compiler error, even though this is perfectly valid (if ugly) Object Pascal code. Turns out the ProcessCase routine in the compiler calls HasInvalidJumps, which scans for any Gotos that lead outside of...

Making an IDE using Pascal Script and SynEdit

Hi, I'm creating a built-in script engine using PascalScript from RemObjects (excellent) and the SynEdit editor. It's almost finished using the IDE example shipped with PascalScript and the IDE example in SynEdit - but - I can't see how to ask PascalScript whether a numbered source line is 'executable' or not. (I can then use this to mar...

Are there any good Pascal Script resources/documentation ?

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

How can I get Pascal Script to recognize the 'create' and 'free' functions when importing a custom class?

I am having a problem with the example from this article. The article explains how to import your own classes so they can be called from a Pascal Script. I am importing my custom class but cannot get Pascal Script to recognize the 'Create' and 'Free' functions. My plugin: TMyPsPlugin = class public procedure PrintMessage(cons...

Pascal Scripting Without Unit Importer

It seems like the UnitImport program maybe came along some ways into the development of cajScript/PascalScript and it may hide some of the details that would help provide an understanding of how to implement a PascalScript application. Assuming that is the case or that you wanted to write a PascalScript application without using the imp...

InnoSetup: Getting AppName in [Code] section

I'm creating an installer using InnoSetup, and writing some custom handlers in a [Code] section. In one of the handlers, I would like to be able to retrieve the value of the AppName (or, potentially, the value of other parameters) defined in the [Setup] section. Is there a way for me to do this? I've looked though the documentation, but ...

Basic email validation within Inno Setup script

I'm wanting to do a basic string validation within an Inno Setup script to be relatively certain the string is an email address. I just want to see that there is a '@' character followed by a '.' character and that there is at least one character on either side of these. Something similar to this regular expression: [^@]+@.+\.[^\.] Th...

Why can't I register this method with the PascalScript compiler?

My question is below. Here is my setup: interface uses windows, {...,} uPSComponent_Default, uPSComponent, uPSRuntime, uPSComponent_Controls; TForm1 = class(TForm) //... PSScript1: TPSScript; PSImport_Classes1: TPSImport_Classes; PSImport_Controls1: TPSImport_Controls; procedure PSScript1Compile(Sender: TPSSc...

Getting started working with RemObjects Pascal Script in delphi

I have just started working with RemObjects Pascal Script. and have been trying to follow the remobjects tutorial. http://devcenter.remobjects.com/articles/?id={2FFC1EE9-F18D-4B11-9DE4-1BA0A79D0D04} all was going fine up to the part you run begin ShowNewMessage('Show This !'); end. where it claimed it does not know of it. but i ...

How can I store a COM object in Inno Setup's TNewComboBox.Objects property?

I'm using Inno Setup to create an installer for my application. I'm currently filling a combobox (TNewComboBox) with the names of the Web sites on the current machine's IIS install. Now what I really want to do is store the COM object alongside the string in the objects property of the combo but keep getting type mismatch errors, even ...