v0.2.0 - 17 November 2021
Added
-
Added optional authors field to the model section. (#54) It is a list of strings.
Example:
authors { 'Andy Maloney <[email protected]>' 'Hiro Protagonist <[email protected]>' }
-
Generated source files now include the gactar version which was used to generate them in the comments at the top. (#78)
-
Added new web API endpoints for creating sessions, and compiling & running models. These are intended to be used by other software to compile and run amod models using gactar running as a server. See the Web API documentation for details.
-
Added documentation for existing web endpoints.
Changed
-
Unused variables now produce an error. (#58)
ERROR: variable ?blat is not used - should be simplified to '?' (line 9)
-
Anonymous variables ("?") in set statements now produce an error. (#59)
do { set goal.thing to ? set goal to [foo: ?] }
This will result in:
ERROR: cannot set 'goal.thing' to anonymous var ('?') in production 'start' (line 10)
-
Anonymous variables ("?") in print statements now produce an error. (#60)
do { print ? }
This will result in:
ERROR: cannot print anonymous var ('?') in production 'start' (line 9)
-
Compound variables ("?foo!?bar") in set statements now produce an error. (#63)
do { set goal to [foo: ?foo!?bar] }
This will result in:
ERROR: cannot set 'goal.thing' to compound var in production 'start' (line 10)
-
Multiple recall statements in a production now produce an error. (#69)
do { recall [foo: ?next ?] recall [foo: ? ?next] }
This will result in:
ERROR: only one recall statement per production is allowed in production 'start' (line 12)
-
pyactr