Skip to content

v0.2.0 - 17 November 2021

Compare
Choose a tag to compare
@asmaloney asmaloney released this 17 Nov 17:06
· 464 commits to main since this release

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

    • Turn off subsymbolic on the model as it is not necessary for what we are doing at the moment. (#68)
    • Clear the retrieval buffer before trying to fill it with a recall statement. This forces the pyactr productions to work like the vanilla ACT-R ones. (#68)

Fixed

  • all frameworks

    • Only output a description comment in the generated code if the description field is present in the amod file.
  • pyactr

    • Generated code now handles printing of numbers and variables. (#65)

      It is still limited to one print per production (#66)

    • Fix addition2 example. (#39)