@@ -454,6 +454,7 @@ def attr_assign(ID, attr, value):
_input(ID)
_input(attr)
_input(value)
+ _consume_to_end()
def attr_assign_code(ID, attr, code):
"""Assign a piece of Action Language code to the attribute"""
@@ -43,3 +43,6 @@ except InvalidMode:
print(instantiate("T2P", ("t1", "p2")))
print(element_list())
print(read_attrs("p1"))
+ attr_assign("p1", "name", "abc")
+ attr_assign("p1", "tokens", 1)
+ print(read_attrs("p1"))