Actions

class tupa.action.Actions(actions=None, size=None)[source]

Bases: tupa.labels.Labels

Attributes Summary

Finish
Implicit
Label
LeftEdge
LeftRemote
Node
Reduce
RemoteNode
RightEdge
RightRemote
Shift
Swap
all
ids

Methods Summary

generate_id(action[, create])
init()

Attributes Documentation

Finish = {'action_type': 'FINISH', 'tag': None}
Implicit = {'action_type': 'IMPLICIT', 'tag': None}
Label = {'action_type': 'LABEL', 'tag': None}
LeftEdge = {'action_type': 'LEFT-EDGE', 'tag': None}
LeftRemote = {'action_type': 'LEFT-REMOTE', 'tag': None}
Node = {'action_type': 'NODE', 'tag': None}
Reduce = {'action_type': 'REDUCE', 'tag': None}
RemoteNode = {'action_type': 'REMOTE-NODE', 'tag': None}
RightEdge = {'action_type': 'RIGHT-EDGE', 'tag': None}
RightRemote = {'action_type': 'RIGHT-REMOTE', 'tag': None}
Shift = {'action_type': 'SHIFT', 'tag': None}
Swap = {'action_type': 'SWAP', 'tag': None}
all
ids

Methods Documentation

generate_id(action, create=True)[source]
init()[source]