specs-feup / lara-framework

Tools and APIs to develop weavers for the LARA language (LARA Compiler, LARA Interpreter, Weaver Generator, etc...)
Apache License 2.0
13 stars 2 forks source link

Create API for LaraArgs #56

Closed joaobispo closed 4 months ago

joaobispo commented 7 months ago

Currently arguments are passed from the weaver to the scripts through a global variable that is always present, laraArgs.

This should be re-implemented as an API that scripts that want to use must import, even if it continues to have global (read-only) state. This implies:

lm-sousa commented 7 months ago

Also referenced here. https://github.com/specs-feup/lara-framework/pull/45#discussion_r1417296361