How to create a restricted compiler ?

30 views
Skip to first unread message

mar...@feldtmann.online

unread,
Dec 19, 2024, 9:47:25 AM12/19/24
to VAST Community Forum
How can I configure the Smalltalk Compiler to compile a block, but in a very restricted environment - so only access to parameters are allowed (as an example).

In addition to this, how can I configure a possible naming solution of global values ?

Thanks,

Marten

Richard Sargent

unread,
Dec 19, 2024, 12:26:39 PM12/19/24
to VAST Community Forum
On Thursday, December 19, 2024 at 6:47:25 AM UTC-8 mar...@feldtmann.online wrote:
How can I configure the Smalltalk Compiler to compile a block, but in a very restricted environment - so only access to parameters are allowed (as an example).

In addition to this, how can I configure a possible naming solution of global values ?

Subclass EsParser (and the corresponding compiler class) and override parse:class:scanComments:errorHandler:ifFail:.
I think that would allow you to define the environment you want, which should limit name resolution.

There is probably quite a bit more than just that, but I think it will give you a starting point.

 

Thanks,

Marten
Reply all
Reply to author
Forward
0 new messages